projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c57ed07
)
HOST_NAME_MAX doesn't exist on freebsd or darwin
author
Heikki Lindholm
<holin@iki.fi>
Fri, 9 Apr 2010 14:32:53 +0000
(14:32 +0000)
committer
Heikki Lindholm
<holin@iki.fi>
Fri, 9 Apr 2010 14:32:53 +0000
(14:32 +0000)
src/include/platform.h
patch
|
blob
|
history
diff --git
a/src/include/platform.h
b/src/include/platform.h
index 7bf2b2f8f69f546f82f17fe3beac251ceffce21a..7a31f4fa716799ad502c85c64c0ceaf46624b080 100644
(file)
--- a/
src/include/platform.h
+++ b/
src/include/platform.h
@@
-191,11
+191,17
@@
#endif
#ifdef FREEBSD
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX MAXHOSTNAMELEN
+#endif
#define __BYTE_ORDER BYTE_ORDER
#define __BIG_ENDIAN BIG_ENDIAN
#endif
#ifdef DARWIN
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX MAXHOSTNAMELEN
+#endif
#define __BYTE_ORDER BYTE_ORDER
#define __BIG_ENDIAN BIG_ENDIAN
/* not available on darwin, override configure */