--- a/src/ucm/parser.c
+++ b/src/ucm/parser.c
@@ -31,6 +31,7 @@
  */
 
 #include "ucm_local.h"
+#include <limits.h>
 #include <dirent.h>
 
 /** The name of the environment variable containing the UCM directory */