fdset.h 1.1 KB

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