blob: cf2c8c0d571798da41db10753b7e1ae7437d24b6 [file] [log] [blame]
--- 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)); }