summaryrefslogtreecommitdiff
path: root/misc-utils/recv_image.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-04-16 22:11:51 -0400
committerBrian Norris <computersforpeace@gmail.com>2016-04-18 09:33:01 -0700
commitd9076259b7f2654599bdf3416ec8ce0ad3b22610 (patch)
tree672c9237d0eff763afa90f32e5f08ad4574fecb3 /misc-utils/recv_image.c
parentaacf7cff26a1ee4cb4528f6f89569a435d9db991 (diff)
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 <vapier@gentoo.org> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'misc-utils/recv_image.c')
-rw-r--r--misc-utils/recv_image.c1
1 files changed, 1 insertions, 0 deletions
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 <errno.h>
#include <stdio.h>