[PATCH] recv_image: fix __USE_GNU hack

Mike Frysinger vapier at gentoo.org
Sun Sep 26 17:42:29 EDT 2010


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 at gentoo.org>
---
note: this depends on the program_name cleanup only because it changes
	code in the same area

 recv_image.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/recv_image.c b/recv_image.c
index fb8e8b3..a3c3fd5 100644
--- a/recv_image.c
+++ b/recv_image.c
@@ -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>
-- 
1.7.2.3




More information about the linux-mtd mailing list