Revision: 77663
          http://sourceforge.net/p/brlcad/code/77663
Author:   starseeker
Date:     2020-11-02 14:10:29 +0000 (Mon, 02 Nov 2020)
Log Message:
-----------
Apple doesn't seem to like the XOPEN_SOURCE define for strdup...

Modified Paths:
--------------
    brlcad/branches/extbuild/src/other/ext/netpbm/colorname.c
    brlcad/branches/extbuild/src/other/ext/netpbm/libpam.c
    brlcad/branches/extbuild/src/other/ext/netpbm/libppmcolor.c

Modified: brlcad/branches/extbuild/src/other/ext/netpbm/colorname.c
===================================================================
--- brlcad/branches/extbuild/src/other/ext/netpbm/colorname.c   2020-10-31 
11:58:13 UTC (rev 77662)
+++ brlcad/branches/extbuild/src/other/ext/netpbm/colorname.c   2020-11-02 
14:10:29 UTC (rev 77663)
@@ -12,8 +12,10 @@
 ** implied warranty.
 */
 
-#define _BSD_SOURCE 1      /* Make sure strdup() is in string.h */
-#define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
+#ifndef __APPLE__
+#  define _BSD_SOURCE 1      /* Make sure strdup() is in string.h */
+#  define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
+#endif
 
 #include "pm_c_util.h"
 #include <ctype.h>

Modified: brlcad/branches/extbuild/src/other/ext/netpbm/libpam.c
===================================================================
--- brlcad/branches/extbuild/src/other/ext/netpbm/libpam.c      2020-10-31 
11:58:13 UTC (rev 77662)
+++ brlcad/branches/extbuild/src/other/ext/netpbm/libpam.c      2020-11-02 
14:10:29 UTC (rev 77663)
@@ -10,8 +10,10 @@
 */
 #define _FILE_OFFSET_BITS 64
 #define _LARGE_FILES  
-#define _BSD_SOURCE 1      /* Make sure strdup() is in string.h */
-#define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
+#ifndef __APPLE__
+#  define _BSD_SOURCE 1      /* Make sure strdup() is in string.h */
+#  define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
+#endif
 
 #include <string.h>
 #include <limits.h>

Modified: brlcad/branches/extbuild/src/other/ext/netpbm/libppmcolor.c
===================================================================
--- brlcad/branches/extbuild/src/other/ext/netpbm/libppmcolor.c 2020-10-31 
11:58:13 UTC (rev 77662)
+++ brlcad/branches/extbuild/src/other/ext/netpbm/libppmcolor.c 2020-11-02 
14:10:29 UTC (rev 77663)
@@ -9,8 +9,10 @@
 ** implied warranty.
 */
 
-#define _BSD_SOURCE 1      /* Make sure strdup() is in string.h */
-#define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
+#ifndef __APPLE__
+#  define _BSD_SOURCE 1      /* Make sure strdup() is in string.h */
+#  define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
+#endif
 
 #include <assert.h>
 #include <stdlib.h>

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to