From: dweatherford Date: Thu, 5 Apr 2007 00:20:40 +0000 (+0000) Subject: [thrift] Build fix for TFileTransport X-Git-Tag: 0.2.0~1385 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=86efa707480155ab7a9497ae295faad4ef9e973e;p=common%2Fthrift.git [thrift] Build fix for TFileTransport 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 --- diff --git a/lib/cpp/src/transport/TFileTransport.cpp b/lib/cpp/src/transport/TFileTransport.cpp index 3b18d0ea..2e9d810b 100644 --- a/lib/cpp/src/transport/TFileTransport.cpp +++ b/lib/cpp/src/transport/TFileTransport.cpp @@ -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"