summaryrefslogtreecommitdiff
path: root/libev.m4
diff options
context:
space:
mode:
authorroot <root>2010-03-16 00:43:22 +0000
committerroot <root>2010-03-16 00:43:22 +0000
commit7e19fcf1be7b0b288f7a12fb3d68743a6bed3e43 (patch)
tree44745929714104897cda657f0dc8ba3da3f2220a /libev.m4
parentf66f93858a4f29964c38f79765c17dea8fc394ca (diff)
*** empty log message ***
Diffstat (limited to 'libev.m4')
-rw-r--r--libev.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/libev.m4 b/libev.m4
index 236f057..0930c0c 100644
--- a/libev.m4
+++ b/libev.m4
@@ -11,7 +11,8 @@ AC_CHECK_FUNC(clock_gettime, [], [
if test $(uname) = Linux; then
AC_MSG_CHECKING(for clock_gettime syscall)
AC_LINK_IFELSE([AC_LANG_PROGRAM(
- [#include <syscall.h>
+ [#include <unistd.h>
+ #include <sys/syscall.h>
#include <time.h>],
[struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)])],
[ac_have_clock_syscall=1