x11-xserver-utils/debian/patches/02_xmodmap-include-config.h...

61 lines
1.6 KiB
Diff

From 42f99a7a7b836f6f9704a7b1747eb722c93446ec Mon Sep 17 00:00:00 2001
From: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Mon, 23 Apr 2012 07:28:39 -0700
Subject: [PATCH] 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>
---
exec.c | 4 ++++
pf.c | 4 ++++
xmodmap.c | 4 ++++
3 files changed, 12 insertions(+)
Index: x11-xserver-utils/xmodmap/exec.c
===================================================================
--- x11-xserver-utils.orig/xmodmap/exec.c
+++ x11-xserver-utils/xmodmap/exec.c
@@ -62,6 +62,10 @@ from The Open Group.
#include <X11/Xwindows.h>
#endif
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <stdio.h>
Index: x11-xserver-utils/xmodmap/pf.c
===================================================================
--- x11-xserver-utils.orig/xmodmap/pf.c
+++ x11-xserver-utils/xmodmap/pf.c
@@ -30,6 +30,10 @@ from The Open Group.
# include "config.h"
#endif
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <stdio.h>
Index: x11-xserver-utils/xmodmap/xmodmap.c
===================================================================
--- x11-xserver-utils.orig/xmodmap/xmodmap.c
+++ x11-xserver-utils/xmodmap/xmodmap.c
@@ -30,6 +30,10 @@ from The Open Group.
# include "config.h"
#endif
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <stdio.h>