]> git.ozlabs.org Git - ccan/commitdiff
iscsi, nfs, opt, tap: use config.h instead of defining _GNU_SOURCE.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Mar 2011 13:10:21 +0000 (23:40 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Mar 2011 13:10:21 +0000 (23:40 +1030)
ccan/iscsi/discovery.c
ccan/iscsi/login.c
ccan/nfs/init.c
ccan/opt/test/run-checkopt.c
ccan/opt/test/run-helpers.c
ccan/opt/test/run-iter.c
ccan/opt/test/run-usage.c
ccan/opt/test/utils.c
ccan/tap/tap.c

index 581084e994f7820b14c34eaeeb5258d0a19eb80d..2f2952f50455783acf701d08d274449b70cdb52b 100644 (file)
@@ -15,7 +15,7 @@
    along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
 
-#define _GNU_SOURCE
+#include "config.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 49a60e926078bd4f1de764d7b6e065af69e402db..1fdf35ca4601a3912b37d83f87efb0a6dde19766 100644 (file)
@@ -15,7 +15,7 @@
    along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
 
-#define _GNU_SOURCE
+#include "config.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 888504fb821925bf210597cbc43fb3ebaf8d313c..7108b5f341620e2e435b05ef079210b15712bb72 100644 (file)
@@ -15,7 +15,7 @@
    along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
 
-#define _GNU_SOURCE
+#include "config.h"
 #include <stdio.h>
 #include <stdarg.h>
 #include <unistd.h>
index 9e2f88a7ae9fd40b55d10a748ec976b81db0cbb1..71ee3c41dc92ee5841022ab69616cd6027f2effc 100644 (file)
@@ -1,4 +1,4 @@
-#define _GNU_SOURCE
+#include "config.h"
 #include <stdio.h>
 #include <ccan/tap/tap.h>
 #include <setjmp.h>
index 3bb70eb4386d4b482cf92987944332ae514e88ee..081d27a9d1e62f90b7a86dc8dc9657b41d429ba5 100644 (file)
@@ -1,4 +1,4 @@
-#define _GNU_SOURCE
+#include "config.h"
 #include <stdio.h>
 #include <ccan/tap/tap.h>
 #include <setjmp.h>
index a7cfb746218a31552e42d1a3342d382b156aec4d..66fd5db8b0ac8533842a9d03f1a68fd1e99ffe6b 100644 (file)
@@ -1,4 +1,3 @@
-#define _GNU_SOURCE
 #include <ccan/tap/tap.h>
 #include <stdarg.h>
 #include <setjmp.h>
index 37e8993fe8bde451bdbf713ba65c222e2b623171..73e6a949e912a161ea916adfcb46b73c500e304c 100644 (file)
@@ -1,4 +1,3 @@
-#define _GNU_SOURCE
 #include <ccan/tap/tap.h>
 #include <stdarg.h>
 #include <setjmp.h>
index 802b15381042b0dc63a26f440e54bb8c0f2b7f0c..fa0a2022e0987368e398161bbce28d60fd43b028 100644 (file)
@@ -1,4 +1,4 @@
-#define _GNU_SOURCE
+#include "config.h"
 #include <ccan/tap/tap.h>
 #include <stdarg.h>
 #include <stdlib.h>
index 9c92f7f21deb92c75ffe016f4c8e18a54b65f69b..6d3ba0db18923a3eadacdad294cbe1d38ef69884 100644 (file)
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
-/* FIXME: The real fix is an asprintf module. */
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
-#endif
+#include "config.h"
 #include <ctype.h>
 #include <stdarg.h>
 #include <stdio.h>