aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-03-08 19:33:27 +0100
committerDuncaen <mail@duncano.de>2017-03-08 19:34:12 +0100
commitaa56f5a57a246125f4d438c753b47b93f8ddab2c (patch)
tree349a0f9034b5da2906ebc5793b0ebe3457e57ab6
parent8364bb76cdbf0db7ac1264532f90b0310fdda362 (diff)
downloadlobase-aa56f5a57a246125f4d438c753b47b93f8ddab2c.tar.gz
usr.bin/sdiff: fix warnings
-rw-r--r--usr.bin/sdiff/edit.c1
-rw-r--r--usr.bin/sdiff/sdiff.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/sdiff/edit.c b/usr.bin/sdiff/edit.c
index 386dc38..700b71f 100644
--- a/usr.bin/sdiff/edit.c
+++ b/usr.bin/sdiff/edit.c
@@ -4,6 +4,7 @@
* Written by Raymond Lai <ray@cyth.net>.
* Public domain.
*/
+#define _GNU_SOURCE /* for asprintf */
#include <sys/types.h>
#include <sys/wait.h>
diff --git a/usr.bin/sdiff/sdiff.c b/usr.bin/sdiff/sdiff.c
index 59f9515..a84cb69 100644
--- a/usr.bin/sdiff/sdiff.c
+++ b/usr.bin/sdiff/sdiff.c
@@ -4,6 +4,7 @@
* Written by Raymond Lai <ray@cyth.net>.
* Public domain.
*/
+#define _GNU_SOURCE /* for asprintf */
#include <sys/queue.h>
#include <sys/stat.h>