summaryrefslogtreecommitdiffstats
path: root/ui/ncurses/nc-widgets.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-12-16 16:21:50 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-12-18 10:19:21 +0800
commit66bf929fa97fabb70198455f9eec2e9ccf0661fa (patch)
treedf9944b43cb30900f4947c7b1ea7e777d16b0d19 /ui/ncurses/nc-widgets.c
parentdf46fcfe4867fd16729bb10dfb82dcd43595c6c2 (diff)
downloadtalos-petitboot-66bf929fa97fabb70198455f9eec2e9ccf0661fa.tar.gz
talos-petitboot-66bf929fa97fabb70198455f9eec2e9ccf0661fa.zip
configure: Use AC_GNU_SOURCE
Rather than #defining _GNU_SOURCE in our .c files, we can define this from config.h instead. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/nc-widgets.c')
-rw-r--r--ui/ncurses/nc-widgets.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/ncurses/nc-widgets.c b/ui/ncurses/nc-widgets.c
index a6773cd..60f9100 100644
--- a/ui/ncurses/nc-widgets.c
+++ b/ui/ncurses/nc-widgets.c
@@ -15,9 +15,9 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#define _GNU_SOURCE
-
+#if defined(HAVE_CONFIG_H)
#include "config.h"
+#endif
#include <linux/input.h> /* This must be included before ncurses.h */
#if defined HAVE_NCURSESW_CURSES_H
@@ -52,7 +52,6 @@
#include <log/log.h>
#include <util/util.h>
-#include "config.h"
#include "nc-cui.h"
#include "nc-widgets.h"
OpenPOWER on IntegriCloud