summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2019-04-16 12:01:58 +0200
committerGünther Deschner <gd@samba.org>2019-04-16 15:14:50 +0000
commite3c894fb6b87df8aa56e29ef3b16ae1ef456a875 (patch)
treeb2a04bac745f84d68b54565a19cdd38fb87c2626 /lib/replace
parenta187b7ef8fe91d227aeda5a2d9d4400d43c9d4ef (diff)
downloadsamba-e3c894fb6b87df8aa56e29ef3b16ae1ef456a875.tar.gz
lib/replace: define NAME_MAX for platforms that don't have it
This allows the vfs_glusterfs_fuse build to complete on AIX. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13872 Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Tue Apr 16 15:14:50 UTC 2019 on sn-devel-144
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/replace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index 212ed265d4a..4d9b81f6825 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -858,6 +858,10 @@ typedef unsigned long long ptrdiff_t ;
#define PATH_MAX 1024
#endif
+#ifndef NAME_MAX
+#define NAME_MAX 255
+#endif
+
#ifndef MAX_DNS_NAME_LENGTH
#define MAX_DNS_NAME_LENGTH 256 /* Actually 255 but +1 for terminating null. */
#endif