summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Klausner <wiz@NetBSD.org>2015-07-21 23:06:46 +0200
committerThomas Klausner <wiz@NetBSD.org>2015-07-22 00:46:57 +0200
commit513d1cf1afdcdf5eafbdf67c0adf421da6ba5722 (patch)
treea3daccf26a6318be42fda9f4ace6dd96b8162094
parent011bec331e11d306c1811376e4de4d84ab2996ce (diff)
Protect config.h with HAVE_CONFIG_H.
Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--Scale.c2
-rw-r--r--xmag.c2
2 files changed, 4 insertions, 0 deletions
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>