[PATCH:mkfontscale 1/2] Only include config.h if it exists.

Thomas Klausner wiz at NetBSD.org
Tue Mar 18 15:18:04 PDT 2014


Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
---
 hash.c        | 2 ++
 mkfontscale.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/hash.c b/hash.c
index 3adfb68..d834222 100644
--- a/hash.c
+++ b/hash.c
@@ -20,7 +20,9 @@
   THE SOFTWARE.
 */
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 
 #include <stdlib.h>
 #include <stdio.h>
diff --git a/mkfontscale.c b/mkfontscale.c
index 265f913..036a0b4 100644
--- a/mkfontscale.c
+++ b/mkfontscale.c
@@ -20,7 +20,9 @@
   THE SOFTWARE.
 */
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 
 #include <stdio.h>
 #include <stdlib.h>
-- 
1.9.0



More information about the xorg-devel mailing list