diff --git a/src/gmnlm.c b/src/gmnlm.c

index c5d5da36ffad8772315928e8a69b785d994511e4..d567a958702bed9413c746bd5b9f3024526fa92e 100644

--- a/src/gmnlm.c

+++ b/src/gmnlm.c

@@ -1,6 +1,7 @@

#include <assert.h>

#include <ctype.h>

#include <getopt.h>

+#include <limits.h>

#include <openssl/bio.h>

#include <openssl/err.h>

#include <regex.h>