diff options
Diffstat (limited to 'meta/recipes-support/apr/apr/configure_fixes.patch')
-rw-r--r-- | meta/recipes-support/apr/apr/configure_fixes.patch | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/meta/recipes-support/apr/apr/configure_fixes.patch b/meta/recipes-support/apr/apr/configure_fixes.patch new file mode 100644 index 0000000000..86ceb8cf08 --- /dev/null +++ b/meta/recipes-support/apr/apr/configure_fixes.patch | |||
@@ -0,0 +1,66 @@ | |||
1 | Index: apr-1.3.3/configure.in | ||
2 | =================================================================== | ||
3 | --- apr-1.3.3.orig/configure.in | ||
4 | +++ apr-1.3.3/configure.in | ||
5 | @@ -794,39 +794,6 @@ AC_CHECK_FUNCS([mmap munmap shm_open shm | ||
6 | create_area]) | ||
7 | |||
8 | APR_CHECK_DEFINE(MAP_ANON, sys/mman.h) | ||
9 | -AC_CHECK_FILE(/dev/zero) | ||
10 | - | ||
11 | -# Not all systems can mmap /dev/zero (such as HP-UX). Check for that. | ||
12 | -if test "$ac_cv_func_mmap" = "yes" && | ||
13 | - test "$ac_cv_file__dev_zero" = "yes"; then | ||
14 | - AC_MSG_CHECKING(for mmap that can map /dev/zero) | ||
15 | - AC_TRY_RUN([ | ||
16 | -#include <sys/types.h> | ||
17 | -#include <sys/stat.h> | ||
18 | -#include <fcntl.h> | ||
19 | -#ifdef HAVE_SYS_MMAN_H | ||
20 | -#include <sys/mman.h> | ||
21 | -#endif | ||
22 | - int main() | ||
23 | - { | ||
24 | - int fd; | ||
25 | - void *m; | ||
26 | - fd = open("/dev/zero", O_RDWR); | ||
27 | - if (fd < 0) { | ||
28 | - return 1; | ||
29 | - } | ||
30 | - m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); | ||
31 | - if (m == (void *)-1) { /* aka MAP_FAILED */ | ||
32 | - return 2; | ||
33 | - } | ||
34 | - if (munmap(m, sizeof(void*)) < 0) { | ||
35 | - return 3; | ||
36 | - } | ||
37 | - return 0; | ||
38 | - }], [], [ac_cv_file__dev_zero=no], [ac_cv_file__dev_zero=no]) | ||
39 | - | ||
40 | - AC_MSG_RESULT($ac_cv_file__dev_zero) | ||
41 | -fi | ||
42 | |||
43 | # Now we determine which one is our anonymous shmem preference. | ||
44 | haveshmgetanon="0" | ||
45 | @@ -1518,13 +1485,14 @@ else | ||
46 | bigendian=0 | ||
47 | fi | ||
48 | |||
49 | -APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h> | ||
50 | -#include <sys/uio.h>],struct iovec,0) | ||
51 | -if test "$ac_cv_sizeof_struct_iovec" = "0"; then | ||
52 | - have_iovec=0 | ||
53 | -else | ||
54 | - have_iovec=1 | ||
55 | -fi | ||
56 | +#APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h> | ||
57 | +##include <sys/uio.h>],struct iovec,0) | ||
58 | +#if test "$ac_cv_sizeof_struct_iovec" = "0"; then | ||
59 | +# have_iovec=0 | ||
60 | +#else | ||
61 | +# have_iovec=1 | ||
62 | +#fi | ||
63 | +have_iovec=1 | ||
64 | |||
65 | AC_SUBST(voidp_size) | ||
66 | AC_SUBST(short_value) | ||