aboutsummaryrefslogtreecommitdiff
path: root/src/include/platform.h
diff options
context:
space:
mode:
authorHeikki Lindholm <holin@iki.fi>2010-04-09 14:32:53 +0000
committerHeikki Lindholm <holin@iki.fi>2010-04-09 14:32:53 +0000
commitf2e80d4faf6883af8d56fa65aeed3d5ab29f407a (patch)
tree33752ac97c7ab69396ad7d4cac676d088f144d76 /src/include/platform.h
parentc57ed076db3529c114dad3251a838e06b64f048a (diff)
downloadgnunet-f2e80d4faf6883af8d56fa65aeed3d5ab29f407a.tar.gz
gnunet-f2e80d4faf6883af8d56fa65aeed3d5ab29f407a.zip
HOST_NAME_MAX doesn't exist on freebsd or darwin
Diffstat (limited to 'src/include/platform.h')
-rw-r--r--src/include/platform.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/platform.h b/src/include/platform.h
index 7bf2b2f8f..7a31f4fa7 100644
--- a/src/include/platform.h
+++ b/src/include/platform.h
@@ -191,11 +191,17 @@
191#endif 191#endif
192 192
193#ifdef FREEBSD 193#ifdef FREEBSD
194#ifndef HOST_NAME_MAX
195#define HOST_NAME_MAX MAXHOSTNAMELEN
196#endif
194#define __BYTE_ORDER BYTE_ORDER 197#define __BYTE_ORDER BYTE_ORDER
195#define __BIG_ENDIAN BIG_ENDIAN 198#define __BIG_ENDIAN BIG_ENDIAN
196#endif 199#endif
197 200
198#ifdef DARWIN 201#ifdef DARWIN
202#ifndef HOST_NAME_MAX
203#define HOST_NAME_MAX MAXHOSTNAMELEN
204#endif
199#define __BYTE_ORDER BYTE_ORDER 205#define __BYTE_ORDER BYTE_ORDER
200#define __BIG_ENDIAN BIG_ENDIAN 206#define __BIG_ENDIAN BIG_ENDIAN
201 /* not available on darwin, override configure */ 207 /* not available on darwin, override configure */