diff options
author | Heikki Lindholm <holin@iki.fi> | 2010-04-09 15:18:42 +0000 |
---|---|---|
committer | Heikki Lindholm <holin@iki.fi> | 2010-04-09 15:18:42 +0000 |
commit | 8cc45616dc646bd4b5301ee32695d2a48013642c (patch) | |
tree | 897f4387237fb56900f773630447d6b7279f5d7c /src/include/platform.h | |
parent | 77ef5d303c6e38bd70f3209b15fa7a3dfec3b55e (diff) | |
download | gnunet-8cc45616dc646bd4b5301ee32695d2a48013642c.tar.gz gnunet-8cc45616dc646bd4b5301ee32695d2a48013642c.zip |
better: sysconf seems to be the preferred way
Diffstat (limited to 'src/include/platform.h')
-rw-r--r-- | src/include/platform.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/include/platform.h b/src/include/platform.h index 7a31f4fa7..7bf2b2f8f 100644 --- a/src/include/platform.h +++ b/src/include/platform.h | |||
@@ -191,17 +191,11 @@ | |||
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 | ||
197 | #define __BYTE_ORDER BYTE_ORDER | 194 | #define __BYTE_ORDER BYTE_ORDER |
198 | #define __BIG_ENDIAN BIG_ENDIAN | 195 | #define __BIG_ENDIAN BIG_ENDIAN |
199 | #endif | 196 | #endif |
200 | 197 | ||
201 | #ifdef DARWIN | 198 | #ifdef DARWIN |
202 | #ifndef HOST_NAME_MAX | ||
203 | #define HOST_NAME_MAX MAXHOSTNAMELEN | ||
204 | #endif | ||
205 | #define __BYTE_ORDER BYTE_ORDER | 199 | #define __BYTE_ORDER BYTE_ORDER |
206 | #define __BIG_ENDIAN BIG_ENDIAN | 200 | #define __BIG_ENDIAN BIG_ENDIAN |
207 | /* not available on darwin, override configure */ | 201 | /* not available on darwin, override configure */ |