Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lukas However
OpenLDAP
Commits
984276d8
Commit
984276d8
authored
Nov 20, 2004
by
Howard Chu
Browse files
Better test for epoll, make sure the syscall actually works
parent
c3d40a6e
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
configure
View file @
984276d8
This diff is collapsed.
Click to expand it.
configure.in
View file @
984276d8
...
...
@@ -887,9 +887,18 @@ AC_CHECK_FUNCS( poll )
AC_CHECK_HEADERS( poll.h )
dnl ----------------------------------------------------------------
AC_CHECK_FUNC(epoll_create, AC_DEFINE(HAVE_EPOLL,1,
[define if you have epoll]))
AC_CHECK_HEADERS( sys/epoll.h )
if test "${ac_cv_header_sys_epoll_h}" = yes; then
AC_MSG_CHECKING(for epoll system call)
AC_TRY_RUN(
int main(int argc, char *argv[])
{
int epfd = epoll_create(256);
exit (epfd == -1 ? 1 : 0);
}, [AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_EPOLL,1, [define if your system supports epoll])],
AC_MSG_RESULT(no),AC_MSG_RESULT(no))
fi
dnl ----------------------------------------------------------------
# strerror checks
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment