Home | History | Annotate | Line # | Download | only in ac
      1 /*	$NetBSD: fdset.h,v 1.4 2025/09/05 21:16:20 christos Exp $	*/
      2 
      3 /* redefine FD_SET */
      4 /* $OpenLDAP$ */
      5 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
      6  *
      7  * Copyright 1998-2024 The OpenLDAP Foundation.
      8  * All rights reserved.
      9  *
     10  * Redistribution and use in source and binary forms, with or without
     11  * modification, are permitted only as authorized by the OpenLDAP
     12  * Public License.
     13  *
     14  * A copy of this license is available in file LICENSE in the
     15  * top-level directory of the distribution or, alternatively, at
     16  * <http://www.OpenLDAP.org/license.html>.
     17  */
     18 
     19 /*
     20  * This header is to be included by portable.h to ensure
     21  * tweaking of FD_SETSIZE is done early enough to be effective.
     22  */
     23 
     24 #ifndef _AC_FDSET_H
     25 #define _AC_FDSET_H
     26 
     27 #if !defined( OPENLDAP_FD_SETSIZE ) && !defined( FD_SETSIZE )
     28 #  define OPENLDAP_FD_SETSIZE 4096
     29 #endif
     30 
     31 #ifdef OPENLDAP_FD_SETSIZE
     32     /* assume installer desires to enlarge fd_set */
     33 #  ifdef HAVE_BITS_TYPES_H
     34 #    include <bits/types.h>
     35 #  endif
     36 #  ifdef __FD_SETSIZE
     37 #    undef __FD_SETSIZE
     38 #    define __FD_SETSIZE OPENLDAP_FD_SETSIZE
     39 #  else
     40 #    define FD_SETSIZE OPENLDAP_FD_SETSIZE
     41 #  endif
     42 #endif
     43 
     44 #endif /* _AC_FDSET_H */
     45