]> www.infradead.org Git - mtd-utils.git/commitdiff
fix build warnings w/newer glibc & _BSD_SOURCE
authorMike Frysinger <vapier@gentoo.org>
Sun, 17 Apr 2016 02:11:51 +0000 (22:11 -0400)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 18 Apr 2016 16:33:01 +0000 (09:33 -0700)
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>
misc-utils/recv_image.c

index 00938310fed8d13b04b0165e9849dc3c15f55617..8bd73560d8795e5e4d26663531b846279e603525 100644 (file)
@@ -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>