summaryrefslogtreecommitdiff
path: root/libev.m4
diff options
context:
space:
mode:
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