diff options
Diffstat (limited to 'dev-libs/re2/files/re2-compile-r0.patch')
-rw-r--r-- | dev-libs/re2/files/re2-compile-r0.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-libs/re2/files/re2-compile-r0.patch b/dev-libs/re2/files/re2-compile-r0.patch new file mode 100644 index 000000000000..cf2c8c0d5717 --- /dev/null +++ b/dev-libs/re2/files/re2-compile-r0.patch @@ -0,0 +1,27 @@ +--- util/mutex.h.orig 2013-09-22 13:24:25.126582479 -0500 ++++ util/mutex.h 2013-09-22 13:25:11.376179517 -0500 +@@ -10,6 +10,8 @@ + #ifndef RE2_UTIL_MUTEX_H_ + #define RE2_UTIL_MUTEX_H_ + ++#include <stdlib.h> ++ + namespace re2 { + + #define HAVE_PTHREAD 1 +@@ -102,7 +104,6 @@ + + #elif defined(HAVE_PTHREAD) && defined(HAVE_RWLOCK) + +-#include <stdlib.h> // for abort() + #define SAFE_PTHREAD(fncall) do { if ((fncall) != 0) abort(); } while (0) + + Mutex::Mutex() { SAFE_PTHREAD(pthread_rwlock_init(&mutex_, NULL)); } +@@ -117,7 +118,6 @@ + + #elif defined(HAVE_PTHREAD) + +-#include <stdlib.h> // for abort() + #define SAFE_PTHREAD(fncall) do { if ((fncall) != 0) abort(); } while (0) + + Mutex::Mutex() { SAFE_PTHREAD(pthread_mutex_init(&mutex_, NULL)); } |