diff options
Diffstat (limited to 'meta/recipes-support/libevent/libevent/libevent-2.0.16_fix_for_x32.patch')
-rw-r--r-- | meta/recipes-support/libevent/libevent/libevent-2.0.16_fix_for_x32.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-support/libevent/libevent/libevent-2.0.16_fix_for_x32.patch b/meta/recipes-support/libevent/libevent/libevent-2.0.16_fix_for_x32.patch new file mode 100644 index 0000000000..ef42863c94 --- /dev/null +++ b/meta/recipes-support/libevent/libevent/libevent-2.0.16_fix_for_x32.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | Upstream-Status: pending | ||
2 | |||
3 | Pulled the patch from gentoo: from here: | ||
4 | http://sources2.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/libevent/files/libevent-2.0.16-sysctl.patch?revision=1.1 | ||
5 | |||
6 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
7 | 2012/01/04 | ||
8 | |||
9 | From 358c745e5432f7648b6f8b3188f32b5551cbf9d6 Mon Sep 17 00:00:00 2001 | ||
10 | From: Mike Frysinger <vapier@gentoo.org> | ||
11 | Date: Thu, 8 Dec 2011 11:39:48 -0500 | ||
12 | Subject: [PATCH] check for sysctl before we use it | ||
13 | |||
14 | Not all C libraries under Linux support the sysctl() func. | ||
15 | --- | ||
16 | arc4random.c | 2 +- | ||
17 | configure.in | 2 +- | ||
18 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
19 | |||
20 | diff --git a/arc4random.c b/arc4random.c | ||
21 | index 4833169..ef10fa8 100644 | ||
22 | --- a/arc4random.c | ||
23 | +++ b/arc4random.c | ||
24 | @@ -166,7 +166,7 @@ arc4_seed_win32(void) | ||
25 | } | ||
26 | #endif | ||
27 | |||
28 | -#if defined(_EVENT_HAVE_SYS_SYSCTL_H) | ||
29 | +#if defined(_EVENT_HAVE_SYS_SYSCTL_H) && defined(_EVENT_HAVE_SYSCTL) | ||
30 | #if _EVENT_HAVE_DECL_CTL_KERN && _EVENT_HAVE_DECL_KERN_RANDOM && _EVENT_HAVE_DECL_RANDOM_UUID | ||
31 | #define TRY_SEED_SYSCTL_LINUX | ||
32 | static int | ||
33 | diff --git a/configure.in b/configure.in | ||
34 | index da08cf4..4e24444 100644 | ||
35 | --- a/configure.in | ||
36 | +++ b/configure.in | ||
37 | @@ -267,7 +267,7 @@ AC_HEADER_TIME | ||
38 | |||
39 | dnl Checks for library functions. | ||
40 | AC_CHECK_FUNCS([gettimeofday vasprintf fcntl clock_gettime strtok_r strsep]) | ||
41 | -AC_CHECK_FUNCS([getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getprotobynumber setenv unsetenv putenv]) | ||
42 | +AC_CHECK_FUNCS([getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl]) | ||
43 | |||
44 | AC_CACHE_CHECK( | ||
45 | [for getaddrinfo], | ||
46 | -- | ||
47 | 1.7.6.1 | ||