From a37fa8647aefd5ae7c203b359c562e578a96ac01 Mon Sep 17 00:00:00 2001 From: SATOH Fumiyasu Date: Wed, 30 Mar 2011 15:55:46 +0900 Subject: [PATCH] s3: Make FD_SETSIZE tuneable for select(2) with more FDs --- lib/replace/replace.h | 12 ++++++++++++ source3/configure.in | 1 + 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/lib/replace/replace.h b/lib/replace/replace.h index 6424d10..17aea1f 100644 --- a/lib/replace/replace.h +++ b/lib/replace/replace.h @@ -32,6 +32,18 @@ #include "config.h" #endif +#ifdef SAMBA_FD_SETSIZE +# ifdef HAVE_BITS_TYPES_H +# include +# endif +# ifdef __FD_SETSIZE +# undef __FD_SETSIZE +# define __FD_SETSIZE SAMBA_FD_SETSIZE +# else +# define FD_SETSIZE SAMBA_FD_SETSIZE +# endif +#endif + #ifdef HAVE_STANDARDS_H #include #endif diff --git a/source3/configure.in b/source3/configure.in index 5201302..59ea8cc 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -679,6 +679,7 @@ AC_CHECK_HEADERS(sys/syslog.h syslog.h) AC_CHECK_HEADERS(langinfo.h locale.h) AC_CHECK_HEADERS(xfs/libxfs.h) AC_CHECK_HEADERS(netgroup.h) +AC_CHECK_HEADERS(bits/types.h) AC_CHECK_HEADERS(rpcsvc/yp_prot.h,,,[[ #if HAVE_RPC_RPC_H -- 1.7.4.1