[thrift] Build fix for TFileTransport
authordweatherford <dev-null@apache.org>
Thu, 5 Apr 2007 00:20:40 +0000 (00:20 +0000)
committerdweatherford <dev-null@apache.org>
Thu, 5 Apr 2007 00:20:40 +0000 (00:20 +0000)
Summary: Not including config.h means we never get the HAVE_CLOCK_GETTIME #define, breaking the build with a duplicate function definition on machines that have a clock_gettime() function in the standard library.

Reviewed By: slee
Test Plan: it compiles, ship it
Revert: ok

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665087 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/transport/TFileTransport.cpp

index 3b18d0e..2e9d810 100644 (file)
@@ -4,6 +4,10 @@
 // See accompanying file LICENSE or visit the Thrift site at:
 // http://developers.facebook.com/thrift/
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "TFileTransport.h"
 #include "TTransportUtils.h"