projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix segfault: dtrace build on solaris
[awesomized/libmemcached]
/
tests
/
libmemcached-1.0
/
mem_functions.cc
diff --git
a/tests/libmemcached-1.0/mem_functions.cc
b/tests/libmemcached-1.0/mem_functions.cc
index fa9ce010e42fb7b6fb4ad8f1c44e6f38ee224bca..2c12f9d797cca2a145d3c992ab3aff439c7303ca 100644
(file)
--- a/
tests/libmemcached-1.0/mem_functions.cc
+++ b/
tests/libmemcached-1.0/mem_functions.cc
@@
-60,10
+60,14
@@
#include <semaphore.h>
#include <signal.h>
#include <sys/stat.h>
#include <semaphore.h>
#include <signal.h>
#include <sys/stat.h>
-#include <sys/time.h>
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
+#include <time.h>
#include <sys/types.h>
#include <sys/types.h>
-#include <unistd.h>
-
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif
#include <iostream>
#include "libtest/server.h"
#include <iostream>
#include "libtest/server.h"