You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/re2/files/re2-compile-r0.patch

28 lines
782 B

--- 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)); }