Fix dropbear compilation with glibc
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 25 Jun 2009 15:12:48 +0000 (17:12 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 1 Jul 2009 12:20:51 +0000 (14:20 +0200)
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>
package/dropbear/dropbear-fix-missing-TIMEVAL_TO_TIMESPEC.patch

index 37c457411ac4d3e1912a24d2f28d6691cf19c855..80606844c634f39e9f4c352e4e164a2345abb739 100644 (file)
@@ -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>