[PATCH mtd-utils] fix build warnings w/newer glibc & _BSD_SOURCE
Mike Frysinger
vapier at gentoo.org
Sat Apr 16 19:11:51 PDT 2016
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 at gentoo.org>
---
misc-utils/recv_image.c | 1 +
1 file changed, 1 insertion(+)
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>
--
2.7.4
More information about the linux-mtd
mailing list