Rob Shearman : wnaspi32: Protect the inclusion of dirent.h in aspi.c.
Alexandre Julliard
julliard at winehq.org
Tue Oct 14 08:29:59 CDT 2008
Module: wine
Branch: master
Commit: 8ef9d20f9697f99130a22e960a2cb9a2acf9af6f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8ef9d20f9697f99130a22e960a2cb9a2acf9af6f
Author: Rob Shearman <robertshearman at gmail.com>
Date: Mon Oct 13 23:37:25 2008 +0100
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.
---
dlls/wnaspi32/aspi.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
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
More information about the wine-cvs
mailing list