Include limits.h (if it exists), which defines NAME_MAX on some
[rsync/rsync.git] / rsync.h
diff --git a/rsync.h b/rsync.h
index 5a86d08..1712b2c 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -319,6 +319,10 @@ enum msgcode {
 #include <compat.h>
 #endif
 
+#ifdef HAVE_LIMITS_H
+# include <limits.h>
+#endif
+
 #include <assert.h>
 
 #include "lib/pool_alloc.h"