git.samba.org
/
gd
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/replace: define NAME_MAX for platforms that don't have it
[gd/samba-autobuild/.git]
/
lib
/
replace
/
replace.h
diff --git
a/lib/replace/replace.h
b/lib/replace/replace.h
index 212ed265d4ab5e14ddb27c2cfda354c358cee239..4d9b81f6825bf3dddb4103624de7a43416a6860c 100644
(file)
--- 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