--- /dev/null
+----------------
+Release 20070401
+----------------
+
+Kevin Ko <kevin.s.ko@gmail.com>
+-Fix for unnecessary std::string copy construction in Protocol/Exception
+
+Paul Querna <pquerna@apache.org>
+-Autoconf error message fix for libevent detection
+-clock_gettime implementation for OSX
autoscan
autoheader
aclocal -I ./aclocal
-libtoolize --automake
+if glibtoolize --version 1 >/dev/null 2>/dev/null; then
+ libtoolize --automake
+elif glibtoolize --version 1 >/dev/null 2>/dev/null; then
+ glibtoolize --automake
+fi
touch NEWS README AUTHORS ChangeLog
autoconf
automake -ac
#include "TTransportUtils.h"
#include <pthread.h>
+#ifndef HAVE_CLOCK_GETTIME
+#include <time.h>
+#else
#include <sys/time.h>
+#endif
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
using namespace std;
using namespace facebook::thrift::protocol;
+#ifndef HAVE_CLOCK_GETTIME
+/**
+ * Fake clock_gettime for systems like darwin
+ *
+ * @author Paul Querna <pquerna@apache.org>
+ */
+#define CLOCK_REALTIME 0
+static int clock_gettime(int clk_id /*ignored*/, struct timespec *tp) {
+ struct timeval now;
+
+ int rv = gettimeofday(&now, NULL);
+ if (rv != 0) {
+ return rv;
+ }
+
+ tp->tv_sec = now.tv_sec;
+ tp->tv_nsec = now.tv_usec * 1000;
+ return 0;
+}
+#endif
TFileTransport::TFileTransport(string path)
: readState_()