3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 1998-2017 The OpenLDAP Foundation.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted only as authorized by the OpenLDAP
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>.
22 # define NAMLEN(dirent) strlen((dirent)->d_name)
23 #elif defined(_MSC_VER)
37 DIR *opendir(const char *name);
38 struct dirent *readdir(DIR *dir);
39 int closedir(DIR *dir);
41 # define dirent direct
42 # define NAMLEN(dirent) (dirent)->d_namlen
43 # ifdef HAVE_SYS_NDIR_H
44 # include <sys/ndir.h>
46 # ifdef HAVE_SYS_DIR_H
54 #endif /* _AC_DIRENT_H */