| commit | 8ef9d20f9697f99130a22e960a2cb9a2acf9af6f | [log] [tgz] |
|---|---|---|
| author | Rob Shearman <robertshearman@gmail.com> | Mon Oct 13 23:37:25 2008 +0100 |
| committer | Alexandre Julliard <julliard@winehq.org> | Tue Oct 14 13:41:54 2008 +0200 |
| tree | 4e2615956f91f3ef9d0c1befff895665fd36bf30 | |
| parent | b919443a581610ee1877945bb2caf39b96afd9c3 [diff] |
wnaspi32: Protect the inclusion of dirent.h in aspi.c. This allows the file to be compiled on platforms that don't have the header file, such as MSVC.
diff --git a/dlls/wnaspi32/aspi.c b/dlls/wnaspi32/aspi.c index 196b968..c511524 100644 --- a/dlls/wnaspi32/aspi.c +++ b/dlls/wnaspi32/aspi.c
@@ -40,7 +40,9 @@ #include <sys/ioctl.h> #endif #include <fcntl.h> -#include <dirent.h> +#ifdef HAVE_DIRENT_H +# include <dirent.h> +#endif #ifdef HAVE_UNISTD_H # include <unistd.h> #endif