Back to index

openldap  2.4.31
fdset.h
Go to the documentation of this file.
00001 /* redefine FD_SET */
00002 /* $OpenLDAP$ */
00003 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
00004  *
00005  * Copyright 1998-2012 The OpenLDAP Foundation.
00006  * All rights reserved.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted only as authorized by the OpenLDAP
00010  * Public License.
00011  *
00012  * A copy of this license is available in file LICENSE in the
00013  * top-level directory of the distribution or, alternatively, at
00014  * <http://www.OpenLDAP.org/license.html>.
00015  */
00016 
00017 /*
00018  * This header is to be included by portable.h to ensure
00019  * tweaking of FD_SETSIZE is done early enough to be effective.
00020  */
00021 
00022 #ifndef _AC_FDSET_H
00023 #define _AC_FDSET_H
00024 
00025 #if !defined( OPENLDAP_FD_SETSIZE ) && !defined( FD_SETSIZE )
00026 #  define OPENLDAP_FD_SETSIZE 4096
00027 #endif
00028 
00029 #ifdef OPENLDAP_FD_SETSIZE
00030     /* assume installer desires to enlarge fd_set */
00031 #  ifdef HAVE_BITS_TYPES_H
00032 #    include <bits/types.h>
00033 #  endif
00034 #  ifdef __FD_SETSIZE
00035 #    undef __FD_SETSIZE
00036 #    define __FD_SETSIZE OPENLDAP_FD_SETSIZE
00037 #  else
00038 #    define FD_SETSIZE OPENLDAP_FD_SETSIZE
00039 #  endif
00040 #endif
00041 
00042 #endif /* _AC_FDSET_H */