add _DEFAULT_SOURCE wherever _BSD_SOURCE was used
authorSzabolcs Nagy <nsz@port70.net>
Thu, 9 Apr 2015 00:31:26 +0000 (00:31 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Thu, 9 Apr 2015 00:31:26 +0000 (00:31 +0000)
23 files changed:
src/functional/string.c
src/math/j0.c
src/math/j0f.c
src/math/j1.c
src/math/j1f.c
src/math/jnf.c
src/math/lgamma.c
src/math/lgamma_r.c
src/math/lgammaf.c
src/math/lgammaf_r.c
src/math/lgammal.c
src/math/scalb.c
src/math/scalbf.c
src/math/y0.c
src/math/y0f.c
src/math/y1.c
src/math/y1f.c
src/math/yn.c
src/regression/daemon-failure.c
src/regression/dn_expand-empty.c
src/regression/dn_expand-ptr-0.c
src/regression/mkdtemp-failure.c
src/regression/mkstemp-failure.c

index 1d159f4..682a1c7 100644 (file)
@@ -1,4 +1,5 @@
-#define _BSD_SOURCE
+#define _DEFAULT_SOURCE 1
+#define _BSD_SOURCE 1
 #include <stdio.h>
 #include <string.h>
 #include "test.h"
 #include <stdio.h>
 #include <string.h>
 #include "test.h"
index f937ab4..7a455ea 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
index 18a8463..c8af0b7 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
index 677dc2d..76af0a3 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
index 17119ae..38e6ab9 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
index 5bdf52f..c595d4c 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
index 381e2d3..8de729f 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
index 0324815..d9fa1ac 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
index d20176b..6789717 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
index 278bfcf..301b7b5 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
index 9050913..5a95266 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
index 901b20c..4346cf5 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
index 309ff8d..f042058 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
index 6684822..7470c43 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
index cbe22b8..7bd78a6 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
index 6bf5135..8af2a17 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
index 6c9ab8a..41afb3a 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _GNU_SOURCE 1
 #include <stdint.h>
index 29eda08..3ac3214 100644 (file)
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
 #define _BSD_SOURCE 1
 #define _XOPEN_SOURCE 700
 #include <stdint.h>
index 2cd9c3f..275d635 100644 (file)
@@ -4,6 +4,7 @@
 // daemon should not fork in case of failure of chdir or open, but
 // since setsid and fork may still fail after fork this behaviour
 // is not very useful
 // daemon should not fork in case of failure of chdir or open, but
 // since setsid and fork may still fail after fork this behaviour
 // is not very useful
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #include <string.h>
 #include <errno.h>
 #define _BSD_SOURCE 1
 #include <string.h>
 #include <errno.h>
index 8ff2670..2afe634 100644 (file)
@@ -1,5 +1,6 @@
 // dn_expand should accept empty name (single \0)
 // dn_expand should accept empty name (single \0)
-#define _BSD_SOURCE
+#define _DEFAULT_SOURCE 1
+#define _BSD_SOURCE 1
 #include <resolv.h>
 #include "test.h"
 
 #include <resolv.h>
 #include "test.h"
 
index beca2d3..cb19557 100644 (file)
@@ -1,5 +1,6 @@
 // dn_expand should handle offset pointer to 0 byte
 // dn_expand should handle offset pointer to 0 byte
-#define _BSD_SOURCE
+#define _DEFAULT_SOURCE 1
+#define _BSD_SOURCE 1
 #include <resolv.h>
 #include <string.h>
 #include "test.h"
 #include <resolv.h>
 #include <string.h>
 #include "test.h"
index 61d7ae6..fa54c13 100644 (file)
@@ -2,6 +2,7 @@
 // commit: 382584724308442f03f3d29f7fc6de9e9d140982 2011-06-12
 // commit: c4685ae429a0cce4b285859d62a71fe603f0a864 2013-08-02
 // mkdtemp should return -1 on bad template
 // commit: 382584724308442f03f3d29f7fc6de9e9d140982 2011-06-12
 // commit: c4685ae429a0cce4b285859d62a71fe603f0a864 2013-08-02
 // mkdtemp should return -1 on bad template
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #include <stdlib.h>
 #include <string.h>
 #define _BSD_SOURCE 1
 #include <stdlib.h>
 #include <string.h>
index 762f1fc..5afec5f 100644 (file)
@@ -1,6 +1,7 @@
 // commit: 2e6239dd064d201c6e1b0f589bae9ff27949d2eb 2011-02-19
 // commit: 382584724308442f03f3d29f7fc6de9e9d140982 2011-06-12
 // mkstemp should return -1 on bad template
 // commit: 2e6239dd064d201c6e1b0f589bae9ff27949d2eb 2011-02-19
 // commit: 382584724308442f03f3d29f7fc6de9e9d140982 2011-06-12
 // mkstemp should return -1 on bad template
+#define _DEFAULT_SOURCE 1
 #define _BSD_SOURCE 1
 #include <stdlib.h>
 #include <string.h>
 #define _BSD_SOURCE 1
 #include <stdlib.h>
 #include <string.h>