From fca4eb9b0844ea60623507cd9de5ce8f78356bd9 Mon Sep 17 00:00:00 2001 From: Jrabbit Date: Tue, 22 Feb 2011 00:03:43 +0000 Subject: [PATCH] new patch from mmlr_mc --- .../libevent/patches/libevent-2.0.10.patch | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/dev-libs/libevent/patches/libevent-2.0.10.patch b/dev-libs/libevent/patches/libevent-2.0.10.patch index 95104ec0c..bd94c5901 100644 --- a/dev-libs/libevent/patches/libevent-2.0.10.patch +++ b/dev-libs/libevent/patches/libevent-2.0.10.patch @@ -1,6 +1,6 @@ -diff -urN libevent-2.0.10-stable/configure.in libevent-2.0.10-stable-haiku/configure.in ---- libevent-2.0.10-stable/configure.in 2010-12-16 17:38:34.004194304 +0000 -+++ libevent-2.0.10-stable-haiku/configure.in 2011-01-19 14:00:04.442236928 +0000 +diff -Naur libevent-2.0.10-stable/configure.in libevent-2.0.10-stable-haiku/configure.in +--- libevent-2.0.10-stable/configure.in 2010-12-16 18:38:34.018350080 +0100 ++++ libevent-2.0.10-stable-haiku/configure.in 2011-02-21 23:55:55.070254592 +0100 @@ -54,8 +54,8 @@ AC_SUBST(LIBTOOL_DEPS) @@ -12,3 +12,15 @@ diff -urN libevent-2.0.10-stable/configure.in libevent-2.0.10-stable-haiku/confi AC_SEARCH_LIBS([inet_aton], [resolv]) AC_SEARCH_LIBS([clock_gettime], [rt]) AC_SEARCH_LIBS([sendfile], [sendfile]) +diff -Naur libevent-2.0.10-stable/util-internal.h libevent-2.0.10-stable-haiku/util-internal.h +--- libevent-2.0.10-stable/util-internal.h 2010-12-14 20:07:56.021233664 +0100 ++++ libevent-2.0.10-stable-haiku/util-internal.h 2011-02-22 00:00:14.000000000 +0100 +@@ -173,7 +173,7 @@ + + /* Evaluates to the same boolean value as 'p', and hints to the compiler that + * we expect this value to be false. */ +-#ifdef __GNUC__ ++#if __GNUC__ >= 3 + #define EVUTIL_UNLIKELY(p) __builtin_expect(!!(p),0) + #else + #define EVUTIL_UNLIKELY(p) (p) \ No newline at end of file