summaryrefslogtreecommitdiff
path: root/package/dropbear
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2009-06-25 17:12:48 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2009-07-01 14:20:51 +0200
commitb7d98b2d42e8a715230166367d8489b17fbc9498 (patch)
tree43970518367be34a492e981dbae00008db318687 /package/dropbear
parente61606ad39735000e66b6048d9be1b9d27c36bd0 (diff)
Fix dropbear compilation with glibc
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>
Diffstat (limited to 'package/dropbear')
-rw-r--r--package/dropbear/dropbear-fix-missing-TIMEVAL_TO_TIMESPEC.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/dropbear/dropbear-fix-missing-TIMEVAL_TO_TIMESPEC.patch b/package/dropbear/dropbear-fix-missing-TIMEVAL_TO_TIMESPEC.patch
index 37c457411..80606844c 100644
--- a/package/dropbear/dropbear-fix-missing-TIMEVAL_TO_TIMESPEC.patch
+++ b/package/dropbear/dropbear-fix-missing-TIMEVAL_TO_TIMESPEC.patch
@@ -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>