Include limits.h (if it exists), which defines NAME_MAX on some
authorWayne Davison <wayned@samba.org>
Wed, 21 Sep 2005 17:38:44 +0000 (17:38 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 21 Sep 2005 17:38:44 +0000 (17:38 +0000)
systems.

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
 
 #include <compat.h>
 #endif
 
+#ifdef HAVE_LIMITS_H
+# include <limits.h>
+#endif
+
 #include <assert.h>
 
 #include "lib/pool_alloc.h"
 #include <assert.h>
 
 #include "lib/pool_alloc.h"