X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Flock.m4;h=aae1701a0a440a78f269059a5e81c7d1cb01b127;hb=fdd1b511c5c12912aae79b58e0c5f6ffa0492d6e;hp=83da6ccf6202e7356b775749b6f1740b88869887;hpb=30d594eb300acfbf6a829bb299bface0d7ea8d8c;p=gnulib.git diff --git a/m4/lock.m4 b/m4/lock.m4 index 83da6ccf6..aae1701a0 100644 --- a/m4/lock.m4 +++ b/m4/lock.m4 @@ -1,5 +1,5 @@ # lock.m4 serial 13 (gettext-0.18.2) -dnl Copyright (C) 2005-2012 Free Software Foundation, Inc. +dnl Copyright (C) 2005-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -24,6 +24,9 @@ AC_DEFUN([gl_LOCK], [[ #if __FreeBSD__ == 4 error "No, in FreeBSD 4.0 recursive mutexes actually don't work." +#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ + && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) +error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." #else int x = (int)PTHREAD_MUTEX_RECURSIVE; return !x;