From 86efa707480155ab7a9497ae295faad4ef9e973e Mon Sep 17 00:00:00 2001 From: dweatherford Date: Thu, 5 Apr 2007 00:20:40 +0000 Subject: [PATCH] [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 --- lib/cpp/src/transport/TFileTransport.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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" -- 2.17.1