confuse-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Confuse-devel] [PATCH 7/7] confuse: declare source as GNU for fileno de


From: Carlo Marcelo Arenas Belon
Subject: [Confuse-devel] [PATCH 7/7] confuse: declare source as GNU for fileno definition and consolidated code
Date: Sat, 27 Mar 2010 03:08:34 -0700

otherwise to show the following warning if compiled in -ansi mode :

  lexer.c:1870: warning: implicit declaration of function ‘fileno’

and the generated lexer.c file uses fileno

Signed-off-by: Carlo Marcelo Arenas Belon <address@hidden>
---
 src/Makefile.am |    1 +
 src/confuse.c   |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 4e3e830..5fed0eb 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,6 +2,7 @@ lib_LTLIBRARIES = libconfuse.la
 
 libconfuse_la_SOURCES = confuse.c lexer.l
 libconfuse_la_LIBADD = $(LTLIBINTL)
+libconfuse_la_CPPFLAGS = -D_GNU_SOURCE
 
 include_HEADERS = confuse.h
 
diff --git a/src/confuse.c b/src/confuse.c
index 6e7a0ef..4e67ba6 100644
--- a/src/confuse.c
+++ b/src/confuse.c
@@ -18,7 +18,6 @@
 # include <config.h>
 #endif
 
-#define _GNU_SOURCE
 #include <sys/types.h>
 #include <string.h>
 #include <stdlib.h>
-- 
1.7.0.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]