Blame SOURCES/xmodmap-1.0.7-fix-configh.patch

dbc595
From 42f99a7a7b836f6f9704a7b1747eb722c93446ec Mon Sep 17 00:00:00 2001
dbc595
From: Alan Coopersmith <alan.coopersmith@oracle.com>
dbc595
Date: Mon, 23 Apr 2012 14:28:39 +0000
dbc595
Subject: include config.h before stdio.h & other system headers
dbc595
dbc595
Ensures definitions like _GNU_SOURCE are visible when needed.
dbc595
dbc595
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
dbc595
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
dbc595
---
dbc595
diff --git a/exec.c b/exec.c
dbc595
index dbcb669..419b10e 100644
dbc595
--- a/exec.c
dbc595
+++ b/exec.c
dbc595
@@ -54,6 +54,10 @@ from The Open Group.
dbc595
  * original xmodmap, written by David Rosenthal, of Sun Microsystems.
dbc595
  */
dbc595
 
dbc595
+#ifdef HAVE_CONFIG_H
dbc595
+# include "config.h"
dbc595
+#endif
dbc595
+
dbc595
 #include <X11/Xos.h>
dbc595
 #include <X11/Xlib.h>
dbc595
 #include <stdio.h>
dbc595
diff --git a/pf.c b/pf.c
dbc595
index 0eb0f55..3f0c3f4 100644
dbc595
--- a/pf.c
dbc595
+++ b/pf.c
dbc595
@@ -26,6 +26,10 @@ from The Open Group.
dbc595
 
dbc595
 */
dbc595
 
dbc595
+#ifdef HAVE_CONFIG_H
dbc595
+# include "config.h"
dbc595
+#endif
dbc595
+
dbc595
 #include <X11/Xos.h>
dbc595
 #include <X11/Xlib.h>
dbc595
 #include <stdio.h>
dbc595
diff --git a/xmodmap.c b/xmodmap.c
dbc595
index 58a8e70..0f89629 100644
dbc595
--- a/xmodmap.c
dbc595
+++ b/xmodmap.c
dbc595
@@ -26,6 +26,10 @@ from The Open Group.
dbc595
 
dbc595
 */
dbc595
 
dbc595
+#ifdef HAVE_CONFIG_H
dbc595
+# include "config.h"
dbc595
+#endif
dbc595
+
dbc595
 #include <X11/Xos.h>
dbc595
 #include <X11/Xlib.h>
dbc595
 #include <stdio.h>
dbc595
--
dbc595
cgit v0.9.0.2-2-gbebe