From d9076259b7f2654599bdf3416ec8ce0ad3b22610 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 16 Apr 2016 22:11:51 -0400 Subject: fix build warnings w/newer glibc & _BSD_SOURCE The _BSD_SOURCE define has been deprecated for a while now. Instead, code should be defining _DEFAULT_SOURCE. By defining both, it'll work with both new & old versions warning-free. Signed-off-by: Mike Frysinger Signed-off-by: Brian Norris --- misc-utils/recv_image.c | 1 + 1 file changed, 1 insertion(+) (limited to 'misc-utils') diff --git a/misc-utils/recv_image.c b/misc-utils/recv_image.c index 0093831..8bd7356 100644 --- a/misc-utils/recv_image.c +++ b/misc-utils/recv_image.c @@ -2,6 +2,7 @@ #define PROGRAM_NAME "recv_image" #define _XOPEN_SOURCE 500 #define _BSD_SOURCE /* struct ip_mreq */ +#define _DEFAULT_SOURCE #include #include -- cgit v1.2.3