From 74e3fb6b0bb480372f34a29499928b5db6a57219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Tue, 16 Apr 2019 12:01:58 +0200 Subject: [PATCH] lib/replace: define NAME_MAX for platforms that don't have it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Andreas Schneider Autobuild-User(master): Günther Deschner Autobuild-Date(master): Tue Apr 16 15:14:50 UTC 2019 on sn-devel-144 (cherry picked from commit e3c894fb6b87df8aa56e29ef3b16ae1ef456a875) --- lib/replace/replace.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/replace/replace.h b/lib/replace/replace.h index 626d3053029..3034ef815ef 100644 --- a/lib/replace/replace.h +++ b/lib/replace/replace.h @@ -843,6 +843,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 -- 2.20.1