[PATCH:xmag] Protect config.h with HAVE_CONFIG_H.
Thomas Klausner
wiz at NetBSD.org
Tue Jul 21 14:07:05 PDT 2015
Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
---
Scale.c | 2 ++
xmag.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/Scale.c b/Scale.c
index f32aeec..ce2064a 100644
--- a/Scale.c
+++ b/Scale.c
@@ -30,7 +30,9 @@ from The Open Group.
* Author: Davor Matic, MIT X Consortium
*/
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include <stdio.h>
#include <ctype.h>
diff --git a/xmag.c b/xmag.c
index e1d6505..c4a88ea 100644
--- a/xmag.c
+++ b/xmag.c
@@ -26,7 +26,9 @@ from The Open Group.
*/
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include <stdlib.h> /* for exit() and abs() */
#include <stdio.h>
--
2.4.6
More information about the xorg-devel
mailing list