The patch introduced at
c579e32dbe6d927bdcfffeede18123aa92abbdd5 was
incorrect, since __USE_GNU is an internal C library defined, and
should not be used by programs. _GNU_SOURCE should be used instead.
This fixes a build failure on Dropbear when compiling against a
glibc-based toolchain.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
#include <sys/param.h> /* required for BSD4_4 define */
#include <sys/socket.h>
#include <sys/stat.h>
-+#define __USE_GNU
++#define _GNU_SOURCE
#include <sys/time.h>
#include <sys/un.h>
#include <sys/wait.h>