]> www.infradead.org Git - mtd-utils.git/commitdiff
recv_image: fix __USE_GNU hack
authorMike Frysinger <vapier@gentoo.org>
Sun, 26 Sep 2010 21:42:29 +0000 (17:42 -0400)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 27 Sep 2010 06:35:56 +0000 (09:35 +0300)
The __USE_GNU define is an internal define that source code should never
be touching.  So switch it to the proper exported _BSD_SOURCE define.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
recv_image.c

index fb8e8b3259a52c40d00748a221c2f8df5350072e..a3c3fd5df026339a6dc2f28761081dce44ad5e1b 100644 (file)
@@ -1,11 +1,11 @@
 
 #define PROGRAM_NAME "recv_image"
 #define _XOPEN_SOURCE 500
+#define _BSD_SOURCE    /* struct ip_mreq */
 
 #include <errno.h>
 #include <error.h>
 #include <stdio.h>
-#define __USE_GNU
 #include <netdb.h>
 #include <stdlib.h>
 #include <string.h>