[PATCH] Conditionally define _GNU_SOURCE in mailinfo.c

From: Art Haas <ahaas@airmail.net>
Date: 2006-05-01 04:19:31
Hi.

Place the '#define _GNU_SOURCE' within an #ifndef/#endif block testing
if '_GNU_SOURCE' is already defined.

Signed-off-by: Art Haas <ahaas@airmail.net>

---

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

d3932a8fca2faac8ed14bfd0e65c1f0135dc1d4b
diff --git a/mailinfo.c b/mailinfo.c
index b276519..4b99ccf 100644
--- a/mailinfo.c
+++ b/mailinfo.c
@@ -2,7 +2,9 @@
  * Another stupid program, this one parsing the headers of an
  * email to figure out authorship and subject
  */
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-- 
1.3.1.g66ae

-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon May 01 04:20:31 2006

This archive was generated by hypermail 2.1.8 : 2006-05-01 04:20:51 EST