diff options
author | Robert Nagy <robert@openbsd.org> | 2011-12-18 11:18:28 +0100 |
---|---|---|
committer | Robert Nagy <robert@openbsd.org> | 2011-12-18 11:18:28 +0100 |
commit | b23f2d78c4d3ca9a79027c6251f3933a85f88053 (patch) | |
tree | 5919bf1e7efea0a28c1318cb2af60c9c430c2bcd /solenv | |
parent | 5ed43db9e8a574a0c66706deeb2feefb89958f96 (diff) |
use the same memory alignment for *BSD as on Linux
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/concat-deps.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c index fc234331f5cb..a0eda4359206 100644 --- a/solenv/bin/concat-deps.c +++ b/solenv/bin/concat-deps.c @@ -36,7 +36,9 @@ #define USE_MEMORY_ALIGNMENT 64 /* big value -> no alignment */ #endif /* Def __CYGWIN__ */ -#ifdef __linux +#if defined(__linux) || defined(__OpenBSD__) || \ + defined(__FreeBSD__) || defined(__NetBSD__) || \ + defined(__DragonFly__) #if __BYTE_ORDER == __LITTLE_ENDIAN #define CORE_BIG_ENDIAN 0 #define CORE_LITTLE_ENDIAN 1 @@ -48,7 +50,7 @@ #define USE_MEMORY_ALIGNMENT 4 #endif /* __BYTE_ORDER == __BIG_ENDIAN */ #endif /* !(__BYTE_ORDER == __LITTLE_ENDIAN) */ -#endif /* Def __linux */ +#endif /* Def __linux || Def *BSD */ #ifdef __sun #ifdef __sparc |