summaryrefslogtreecommitdiff
path: root/source3/lib/replace/replace.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-09-19 14:57:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:52 -0500
commit68edc3a5c5a3cfeed222a95bbe75dadd41dbb5ea (patch)
tree704b256ceb18ccfb5fdd85d8831af3e039029803 /source3/lib/replace/replace.h
parent10cb1b87ed44540454fd99b817c0a7a9d74afea2 (diff)
downloadsamba-68edc3a5c5a3cfeed222a95bbe75dadd41dbb5ea.tar.gz
samba-68edc3a5c5a3cfeed222a95bbe75dadd41dbb5ea.tar.bz2
samba-68edc3a5c5a3cfeed222a95bbe75dadd41dbb5ea.zip
r25232: sync lib/replace with SAMBA_4_0
metze (This used to be commit 828d2ca0610ab5ee3b96d187b3432b9b4fea72f8)
Diffstat (limited to 'source3/lib/replace/replace.h')
-rw-r--r--source3/lib/replace/replace.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/lib/replace/replace.h b/source3/lib/replace/replace.h
index 06173bd84b..90d65931e7 100644
--- a/source3/lib/replace/replace.h
+++ b/source3/lib/replace/replace.h
@@ -375,6 +375,14 @@ ssize_t rep_pwrite(int __fd, const void *__buf, size_t __nbytes, off_t __offset)
#define HOST_NAME_MAX 64
#endif
+/*
+ * Some older systems seem not to have MAXHOSTNAMELEN
+ * defined.
+ */
+#ifndef MAXHOSTNAMELEN
+#define MAXHOSTNAMELEN HOST_NAME_MAX
+#endif
+
#ifndef UINT16_MAX
#define UINT16_MAX 65535
#endif
@@ -466,7 +474,7 @@ typedef int bool;
#define __STRING(x) #x
#endif
-#ifndef _STRINGSTRING
+#ifndef __STRINGSTRING
#define __STRINGSTRING(x) __STRING(x)
#endif