Index: trunk/psLib/src/fits/psFits.c
===================================================================
--- trunk/psLib/src/fits/psFits.c	(revision 27218)
+++ trunk/psLib/src/fits/psFits.c	(revision 27219)
@@ -149,5 +149,5 @@
             int thisErrno = errno;      // Error number
             char errorBuf[MAX_STRING_LENGTH], *errorMsg;
-#if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE)
+#if (((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE) ||  __APPLE__)
             strerror_r(thisErrno, errorBuf, MAX_STRING_LENGTH);
             errorMsg = errorBuf;
@@ -208,5 +208,5 @@
                 int thisErrno = errno;
                 char errorBuf[64], *errorMsg;
-# if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE)
+#if (((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE) ||  __APPLE__)
                 strerror_r (errno, errorBuf, 64);
                 errorMsg = errorBuf;
