lobase

Linux port of OpenBSDs userland.
Log | Files | Refs | README

commit f186a9030f522216363c7bfb93cbc8ac205a1bf3
parent 1306d269624c43174ac8973e1b761bf5079a93ce
Author: Duncaen <mail@duncano.de>
Date:   Mon,  6 Mar 2017 23:30:20 +0100

usr.bin/diff: fix vasprintf warning

Diffstat:
usr.bin/diff/xmalloc.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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>