Skip to content
Snippets Groups Projects
Commit 2cc2d0ba authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Added possibility to override socketpair().

Rev: src/modules/files/configure.in:1.35
parent f37667c0
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@ AC_CONFIG_HEADER(file_machine.h)
sinclude(../module_configure.in)
AC_ARG_ENABLE(socketpair, [ --enable-socketpair Force the system socketpair to be used ])
AC_HAVE_HEADERS(sys/types.h arpa/inet.h sys/socketvar.h netinet/in.h \
sys/mount.h ustat.h sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
sys/socket.h sys/stream.h sys/protosw.h netdb.h sys/sysproto.h)
......@@ -449,6 +451,11 @@ int main()
AC_MSG_RESULT($pike_cv_select_on_unix_sockets)
if test x$pike_cv_select_on_unix_sockets = xyes ; then
AC_DEFINE(HAVE_SOCKETPAIR)
else
if test x$enable_socketpair = xyes ; then
echo 'WARNING: Forcing socketpair() to be used.'
AC_DEFINE(HAVE_SOCKETPAIR)
else :; fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment