From: Kurt Zeilenga Date: Fri, 9 Jul 2004 17:52:26 +0000 (+0000) Subject: Move SETSIZE hack to a header to avoid config.status munging X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~100 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1681421d010f68c69e52b68b76bd8d714373e686;p=openldap Move SETSIZE hack to a header to avoid config.status munging --- diff --git a/acconfig.h b/acconfig.h index ab65e5b726..f6f86c05c9 100644 --- a/acconfig.h +++ b/acconfig.h @@ -113,18 +113,7 @@ #define vsprintf ber_pvt_vsprintf #endif -#ifdef OPENLDAP_FD_SETSIZE - /* assume installer desires to enlarge fd_set */ -#ifdef HAVE_BITS_TYPES_H -#include -#endif -#ifdef __FD_SETSIZE -#undef __FD_SETSIZE -#define __FD_SETSIZE OPENLDAP_FD_SETSIZE -#else -#define FD_SETSIZE OPENLDAP_FD_SETSIZE -#endif -#endif +#include "ac/fdset.h" #include "ldap_cdefs.h" #include "ldap_features.h" diff --git a/include/ac/fdset.h b/include/ac/fdset.h new file mode 100644 index 0000000000..45ed4247ab --- /dev/null +++ b/include/ac/fdset.h @@ -0,0 +1,33 @@ +/* redefine FD_SET */ +/* $OpenLDAP$ */ +/* This work is part of OpenLDAP Software . + * + * Copyright 1998-2004 The OpenLDAP Foundation. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted only as authorized by the OpenLDAP + * Public License. + * + * A copy of this license is available in file LICENSE in the + * top-level directory of the distribution or, alternatively, at + * . + */ + +#ifndef _AC_FDSET_H +#define _AC_FDSET_H + +#ifdef OPENLDAP_FD_SETSIZE + /* assume installer desires to enlarge fd_set */ +# ifdef HAVE_BITS_TYPES_H +# include +# endif +# ifdef __FD_SETSIZE +# undef __FD_SETSIZE +# define __FD_SETSIZE OPENLDAP_FD_SETSIZE +# else +# define FD_SETSIZE OPENLDAP_FD_SETSIZE +# endif +#endif + +#endif /* _AC_FDSET_H */ diff --git a/include/portable.h.in b/include/portable.h.in index 5222fd2947..c54a68848d 100644 --- a/include/portable.h.in +++ b/include/portable.h.in @@ -1070,18 +1070,7 @@ #define vsprintf ber_pvt_vsprintf #endif -#ifdef OPENLDAP_FD_SETSIZE - /* assume installer desires to enlarge fd_set */ -#ifdef HAVE_BITS_TYPES_H -#include -#endif -#ifdef __FD_SETSIZE -#undef __FD_SETSIZE -#define __FD_SETSIZE OPENLDAP_FD_SETSIZE -#else -#define FD_SETSIZE OPENLDAP_FD_SETSIZE -#endif -#endif +#include "ac/fdset.h" #include "ldap_cdefs.h" #include "ldap_features.h"