X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Flock.m4;h=73a3c54cee8f290e8382308ae766709de182c203;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=83da6ccf6202e7356b775749b6f1740b88869887;hpb=30d594eb300acfbf6a829bb299bface0d7ea8d8c;p=gnulib.git diff --git a/m4/lock.m4 b/m4/lock.m4 index 83da6ccf6..73a3c54ce 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-2014 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;