]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
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 5a86d083787cf794d676d778ca3a99d39143578e..1712b2c81fd97fbdf844a288467a47d92b1f555d 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"