home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ldapsdk.zip / include / ac / dirent.h < prev    next >
C/C++ Source or Header  |  2001-05-30  |  914b  |  35 lines

  1. /* Generic dirent.h */
  2. /* $OpenLDAP: pkg/ldap/include/ac/dirent.h,v 1.3.8.3 2001/05/30 05:10:45 kurt Exp $ */
  3. /*
  4.  * Copyright 1998-2001 The OpenLDAP Foundation, Redwood City, California, USA
  5.  * All rights reserved.
  6.  *
  7.  * Redistribution and use in source and binary forms, with or without
  8.  * modification, are permitted only as authorized by the OpenLDAP
  9.  * Public License.  A copy of this license is available at
  10.  * http://www.OpenLDAP.org/license.html or in file LICENSE in the
  11.  * top-level directory of the distribution.
  12.  */
  13.  
  14. #ifndef _AC_DIRENT_H
  15. #define _AC_DIRENT_H
  16.  
  17. #if HAVE_DIRENT_H
  18. # include <dirent.h>
  19. # define NAMLEN(dirent) strlen((dirent)->d_name)
  20. #else
  21. # define dirent direct
  22. # define NAMLEN(dirent) (dirent)->d_namlen
  23. # if HAVE_SYS_NDIR_H
  24. #  include <sys/ndir.h>
  25. # endif
  26. # if HAVE_SYS_DIR_H
  27. #  include <sys/dir.h>
  28. # endif
  29. # if HAVE_NDIR_H
  30. #  include <ndir.h>
  31. # endif
  32. #endif
  33.  
  34. #endif /* _AC_DIRENT_H */
  35.