summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-04-23 07:28:39 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-04-27 17:56:56 -0700
commit42f99a7a7b836f6f9704a7b1747eb722c93446ec (patch)
tree41bd122b690a709d0d075e703ccc77ded0153b7f
parentf857804dd904c69de447f4117220db149d9239ec (diff)
include config.h before stdio.h & other system headers
Ensures definitions like _GNU_SOURCE are visible when needed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--exec.c4
-rw-r--r--pf.c4
-rw-r--r--xmodmap.c4
3 files changed, 12 insertions, 0 deletions
diff --git a/exec.c b/exec.c
index dbcb669..419b10e 100644
--- a/exec.c
+++ b/exec.c
@@ -54,6 +54,10 @@ from The Open Group.
* original xmodmap, written by David Rosenthal, of Sun Microsystems.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <stdio.h>
diff --git a/pf.c b/pf.c
index 0eb0f55..3f0c3f4 100644
--- a/pf.c
+++ b/pf.c
@@ -26,6 +26,10 @@ from The Open Group.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <stdio.h>
diff --git a/xmodmap.c b/xmodmap.c
index 58a8e70..0f89629 100644
--- a/xmodmap.c
+++ b/xmodmap.c
@@ -26,6 +26,10 @@ from The Open Group.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <stdio.h>