diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-03-04 07:28:29 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-03-04 18:33:57 +0100 |
commit | 0a95a0d0b60e9f8ff28ccb28179f59f68e421346 (patch) | |
tree | e02f4c7e878d9b662c389cb8add0d825fd499709 /configure.ac | |
parent | lib: Refactore thread_process_fd (diff) | |
download | frr-0a95a0d0b60e9f8ff28ccb28179f59f68e421346.tar.xz frr-0a95a0d0b60e9f8ff28ccb28179f59f68e421346.zip |
lib: Add ability to use poll() instead of select
This patch originated w/ Hannes Hofer <hhofer@barracuda.com>.
I've taken the patch fixed some bugs and reworked the code
to allow both poll and select to be choosen at compile time.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 74020ad73..d7b0ffe8f 100755 --- a/configure.ac +++ b/configure.ac @@ -300,6 +300,8 @@ AC_ARG_ENABLE(fpm, [ --enable-fpm enable Forwarding Plane Manager support]) AC_ARG_ENABLE(systemd, [ --enable-systemd enable Systemd support]) +AC_ARG_ENABLE(poll, +[ --enable-poll enable usage of Poll instead of select]) AC_ARG_ENABLE(werror, AS_HELP_STRING([--enable-werror], [enable -Werror (recommended for developers only)])) AC_ARG_ENABLE(cumulus, @@ -331,6 +333,10 @@ if test "${enable_systemd}" = "yes" ; then LIBS="$LIBS -lsystemd " fi +if test "${enable_poll}" = "yes" ; then + AC_DEFINE(HAVE_POLL,,Compile systemd support in) +fi + if test "${enable_cumulus}" = "yes" ; then AC_DEFINE(HAVE_CUMULUS,,Compile Special Cumulus Code in) fi |