Commit b7d98b2d authored by Thomas Petazzoni's avatar Thomas Petazzoni
Browse files

Fix dropbear compilation with glibc



The patch introduced at c579e32d 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: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent e61606ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ diff -ur dropbear-0.48/includes.h dropbear-0.48-patched/includes.h
 #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>