From 240df17f85c8086bc5f9f17c28ce9e0936f65316 Mon Sep 17 00:00:00 2001 From: Jake Farrell Date: Tue, 4 Jun 2013 23:59:34 -0400 Subject: [PATCH] THRIFT-1824:many compile warning, becase Thread.h includes config.h Client: build Patch: Jake Farrell Wrap our config.h with #ifndef CONFIG_H to guard against duplicate definitions --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index 372f2d1c..757922ed 100755 --- a/configure.ac +++ b/configure.ac @@ -574,6 +574,15 @@ fi AM_CONDITIONAL([WITH_BOOSTTHREADS], [test "x[$]ENABLE_BOOSTTHREADS" = "x1"]) AC_CONFIG_HEADERS(config.h:config.hin) +# gruard against pre defined config.h +AH_TOP([ +#ifndef CONFIG_H +#define CONFIG_H +]) +AH_BOTTOM([ +#endif +]) + AC_CONFIG_FILES([ Makefile -- 2.17.1