p9y
[awesomized/libmemcached] / src / p9y / gettimeofday.hpp
diff --git a/src/p9y/gettimeofday.hpp b/src/p9y/gettimeofday.hpp
new file mode 100644 (file)
index 0000000..02b8d6d
--- /dev/null
@@ -0,0 +1,12 @@
+#pragma once
+
+#include "libmemcached-1.0/platform.h"
+
+#include <time.h>
+#if defined HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
+
+#if !defined HAVE_GETTIMEOFDAY
+int gettimeofday(struct timeval* tp, struct timezone* tzp);
+#endif