aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-03-06 23:30:20 +0100
committerDuncaen <mail@duncano.de>2017-03-06 23:30:20 +0100
commitf186a9030f522216363c7bfb93cbc8ac205a1bf3 (patch)
tree4fd371ba56222da270158fe9f9989091c6705d43
parent1306d269624c43174ac8973e1b761bf5079a93ce (diff)
downloadlobase-f186a9030f522216363c7bfb93cbc8ac205a1bf3.tar.gz
usr.bin/diff: fix vasprintf warning
-rw-r--r--usr.bin/diff/xmalloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/diff/xmalloc.c b/usr.bin/diff/xmalloc.c
index a17c3fe..a784513 100644
--- a/usr.bin/diff/xmalloc.c
+++ b/usr.bin/diff/xmalloc.c
@@ -12,6 +12,9 @@
* incompatible with the protocol description in the RFC file, it must be
* called by a name other than "ssh" or "Secure Shell".
*/
+#if defined(__linux__) && !defined(_GNU_SOURCE)
+#define _GNU_SOURCE /* for vasprintf */
+#endif
#include <err.h>
#include <stdarg.h>