[asterisk-commits] file: trunk r79972 - in /trunk: configure configure.ac
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Aug 18 18:58:52 CDT 2007
Author: file
Date: Sat Aug 18 18:58:51 2007
New Revision: 79972
URL: http://svn.digium.com/view/asterisk?view=rev&rev=79972
Log:
Actually check the return value of epoll_create to make sure it works.
Modified:
trunk/configure
trunk/configure.ac
Modified: trunk/configure
URL: http://svn.digium.com/view/asterisk/trunk/configure?view=diff&rev=79972&r1=79971&r2=79972
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Sat Aug 18 18:58:51 2007
@@ -15636,7 +15636,11 @@
int
main ()
{
-epoll_create(10);
+int res = epoll_create(10);
+ if (res < 0)
+ return 1;
+ close (res);
+ return 0;
;
return 0;
}
Modified: trunk/configure.ac
URL: http://svn.digium.com/view/asterisk/trunk/configure.ac?view=diff&rev=79972&r1=79971&r2=79972
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Sat Aug 18 18:58:51 2007
@@ -334,7 +334,11 @@
AC_MSG_CHECKING(for working epoll support)
AC_LINK_IFELSE(
-AC_LANG_PROGRAM([#include <sys/epoll.h>], [epoll_create(10);]),
+AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
+ if (res < 0)
+ return 1;
+ close (res);
+ return 0;]),
AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
AC_MSG_RESULT(no)
More information about the asterisk-commits
mailing list