Commit 87175c61 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

Add configure check for dirent.h and readdir.

parent c5fbf98e
...@@ -7217,6 +7217,7 @@ done ...@@ -7217,6 +7217,7 @@ done
for ac_header in \ for ac_header in \
AudioUnit/AudioUnit.h \ AudioUnit/AudioUnit.h \
Carbon/Carbon.h \ Carbon/Carbon.h \
...@@ -7231,6 +7232,7 @@ for ac_header in \ ...@@ -7231,6 +7232,7 @@ for ac_header in \
capi20.h \ capi20.h \
curses.h \ curses.h \
direct.h \ direct.h \
dirent.h \
dlfcn.h \ dlfcn.h \
elf.h \ elf.h \
float.h \ float.h \
...@@ -17206,6 +17208,7 @@ esac ...@@ -17206,6 +17208,7 @@ esac
for ac_func in \ for ac_func in \
_pclose \ _pclose \
_popen \ _popen \
...@@ -17249,6 +17252,7 @@ for ac_func in \ ...@@ -17249,6 +17252,7 @@ for ac_func in \
prctl \ prctl \
pread \ pread \
pwrite \ pwrite \
readdir \
readlink \ readlink \
rfork \ rfork \
sched_yield \ sched_yield \
......
...@@ -237,6 +237,7 @@ AC_CHECK_HEADERS(\ ...@@ -237,6 +237,7 @@ AC_CHECK_HEADERS(\
capi20.h \ capi20.h \
curses.h \ curses.h \
direct.h \ direct.h \
dirent.h \
dlfcn.h \ dlfcn.h \
elf.h \ elf.h \
float.h \ float.h \
...@@ -1401,6 +1402,7 @@ AC_CHECK_FUNCS(\ ...@@ -1401,6 +1402,7 @@ AC_CHECK_FUNCS(\
prctl \ prctl \
pread \ pread \
pwrite \ pwrite \
readdir \
readlink \ readlink \
rfork \ rfork \
sched_yield \ sched_yield \
......
...@@ -22,7 +22,9 @@ ...@@ -22,7 +22,9 @@
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
#include <sys/stat.h> #include <sys/stat.h>
#endif #endif
#ifdef HAVE_DIRENT_H
#include <dirent.h> #include <dirent.h>
#endif
#include <fcntl.h> #include <fcntl.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
...@@ -313,6 +315,7 @@ static BOOL import_certs_from_path(LPCSTR path, HCERTSTORE store, ...@@ -313,6 +315,7 @@ static BOOL import_certs_from_path(LPCSTR path, HCERTSTORE store,
*/ */
static BOOL import_certs_from_dir(LPCSTR path, HCERTSTORE store) static BOOL import_certs_from_dir(LPCSTR path, HCERTSTORE store)
{ {
#ifdef HAVE_READDIR
BOOL ret = FALSE; BOOL ret = FALSE;
DIR *dir; DIR *dir;
...@@ -341,6 +344,10 @@ static BOOL import_certs_from_dir(LPCSTR path, HCERTSTORE store) ...@@ -341,6 +344,10 @@ static BOOL import_certs_from_dir(LPCSTR path, HCERTSTORE store)
} }
} }
return ret; return ret;
#else
FIXME("not implemented without readdir available\n");
return FALSE;
#endif
} }
/* Opens path, which may be a file or a directory, and imports any certificates /* Opens path, which may be a file or a directory, and imports any certificates
......
...@@ -65,6 +65,9 @@ ...@@ -65,6 +65,9 @@
/* Define to 1 if you have the <direct.h> header file. */ /* Define to 1 if you have the <direct.h> header file. */
#undef HAVE_DIRECT_H #undef HAVE_DIRECT_H
/* Define to 1 if you have the <dirent.h> header file. */
#undef HAVE_DIRENT_H
/* Define to 1 if you have the <DiskArbitration/DiskArbitration.h> header /* Define to 1 if you have the <DiskArbitration/DiskArbitration.h> header
file. */ file. */
#undef HAVE_DISKARBITRATION_DISKARBITRATION_H #undef HAVE_DISKARBITRATION_DISKARBITRATION_H
...@@ -570,6 +573,9 @@ ...@@ -570,6 +573,9 @@
/* Define to 1 if you have the `pwrite' function. */ /* Define to 1 if you have the `pwrite' function. */
#undef HAVE_PWRITE #undef HAVE_PWRITE
/* Define to 1 if you have the `readdir' function. */
#undef HAVE_READDIR
/* Define to 1 if you have the `readlink' function. */ /* Define to 1 if you have the `readlink' function. */
#undef HAVE_READLINK #undef HAVE_READLINK
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment