about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-07-04 12:18:46 -0400
committerRich Felker <dalias@aerifal.cx>2012-07-04 12:18:46 -0400
commit98eddc677609c20796982f3171165700613e3cf2 (patch)
treeeee1ee9d882defbc72547a0e71d7a5731ce0ca76
parent25b88f081076a7beb2331ec219640d1a829cdcc4 (diff)
downloadmusl-98eddc677609c20796982f3171165700613e3cf2.tar.gz
musl-98eddc677609c20796982f3171165700613e3cf2.tar.xz
musl-98eddc677609c20796982f3171165700613e3cf2.zip
make sure getw/putw agree with prototypes by defining _GNU_SOURCE
-rw-r--r--src/stdio/getw.c1
-rw-r--r--src/stdio/putw.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/stdio/getw.c b/src/stdio/getw.c
index de9e985a..73d2c0d5 100644
--- a/src/stdio/getw.c
+++ b/src/stdio/getw.c
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
 #include <stdio.h>
 
 int getw(FILE *f)
diff --git a/src/stdio/putw.c b/src/stdio/putw.c
index 137832ee..a6d24292 100644
--- a/src/stdio/putw.c
+++ b/src/stdio/putw.c
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
 #include <stdio.h>
 
 int putw(int x, FILE *f)