~mdw
/
sgt
/
agedu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aea73b9
)
Provide a fallback definition of HOST_NAME_MAX, in case one isn't
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 7 Dec 2012 19:03:50 +0000
(19:03 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 7 Dec 2012 19:03:50 +0000
(19:03 +0000)
provided in the system headers along with the definition of
gethostname().
git-svn-id: svn://svn.tartarus.org/sgt/agedu@9721
cda61777
-01e9-0310-a592-
d414129be87e
agedu.h
patch
|
blob
|
blame
|
history
diff --git
a/agedu.h
b/agedu.h
index
b0052f0
..
ec035d4
100644
(file)
--- a/
agedu.h
+++ b/
agedu.h
@@
-92,6
+92,12
@@
# include <netdb.h>
#endif
+#ifndef HOST_NAME_MAX
+/* Reportedly at least one Solaris fails to comply with its POSIX
+ * requirement to define this (see POSIX spec for gethostname) */
+#define HOST_NAME_MAX 255 /* upper bound specified in SUS */
+#endif
+
#define PNAME "agedu"
#define DUMPHDR "agedu dump file. pathsep="