lib/replace: define NAME_MAX for platforms that don't have it
authorGünther Deschner <gd@samba.org>
Tue, 16 Apr 2019 10:01:58 +0000 (12:01 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 16 Apr 2019 15:14:50 +0000 (15:14 +0000)
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

lib/replace/replace.h

index 212ed265d4ab5e14ddb27c2cfda354c358cee239..4d9b81f6825bf3dddb4103624de7a43416a6860c 100644 (file)
@@ -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