Skip to content

Commit 839e5ed

Browse files
authored
Look for epoll.h in configure instead of types.h (#929)
1 parent 7593130 commit 839e5ed

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## 2.7
66

7+
* Update `configure.ac` to look for `epoll.h` when checking for epoll.
8+
79
### 2.7.2
810

911
* Add include of `cstdint.h` to `mtev_json_object.h` to fix include order

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,8 +834,8 @@ fi
834834

835835
AC_CACHE_CHECK([for epoll support], ac_cv_have_epoll, [
836836
AC_TRY_LINK(
837-
[ #include <sys/types.h> ],
838-
[ int a; a = epoll_create(); (void)a;],
837+
[ #include <sys/epoll.h> ],
838+
[ int a; a = epoll_create(0); (void)a;],
839839
[ ac_cv_have_epoll="yes" ],
840840
[ ac_cv_have_epoll="no" ]
841841
)

0 commit comments

Comments
 (0)