diff options
author | ng0 <ng0@n0.is> | 2019-09-11 13:21:55 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-11 13:21:55 +0000 |
commit | 34055eec1e9bcb71537067367a93989c021fadc6 (patch) | |
tree | 729818b6497e3ddd0a46531e434b160ceee55984 /m4 | |
parent | c4ae64d7988d03a10fd43cf8d0fa81399382fcb3 (diff) | |
download | gnunet-34055eec1e9bcb71537067367a93989c021fadc6.tar.gz gnunet-34055eec1e9bcb71537067367a93989c021fadc6.zip |
align.m4: Add stdlib.h explicitly to make the test pass on NetBSD.
Should not be problematic, every system we support right now has a
stdlib.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/align.m4 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/align.m4 b/m4/align.m4 index 7bcbae8fa..57ffee7fc 100644 --- a/m4/align.m4 +++ b/m4/align.m4 | |||
@@ -13,7 +13,10 @@ AC_DEFUN([AC_UNALIGNED_64_ACCESS], | |||
13 | [AC_CACHE_CHECK([whether unaligned 64-bit access works], | 13 | [AC_CACHE_CHECK([whether unaligned 64-bit access works], |
14 | ac_cv_unaligned_64_access, | 14 | ac_cv_unaligned_64_access, |
15 | [ | 15 | [ |
16 | AC_RUN_IFELSE([AC_LANG_PROGRAM([[struct S { int a,b,c;};]], | 16 | AC_RUN_IFELSE([AC_LANG_PROGRAM([[ |
17 | #include <stdlib.h> | ||
18 | struct S { int a,b,c;}; | ||
19 | ]], | ||
17 | [[struct S s = {0,0,0}; long long * p = (long long *) &s.b; | 20 | [[struct S s = {0,0,0}; long long * p = (long long *) &s.b; |
18 | void *bp = malloc (50); | 21 | void *bp = malloc (50); |
19 | long long x = *p; | 22 | long long x = *p; |