PATCH dlls/winaspi/asip.c

Gerald Pfeifer gerald at pfeifer.com
Fri Aug 12 00:07:46 CDT 2005


My nightly builder on a FreeBSD machine spotted this one.

Gerald

ChangeLog:
set_last_error() is only used on Linux.
Index: aspi.c
===================================================================
RCS file: /home/wine/wine/dlls/winaspi/aspi.c,v
retrieving revision 1.26
diff -u -3 -p -r1.26 aspi.c
--- aspi.c	10 Aug 2005 10:52:22 -0000	1.26
+++ aspi.c	12 Aug 2005 05:06:18 -0000
@@ -58,6 +58,7 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(aspi);
 
+#ifdef linux
 static void set_last_error(void)
 {
     int save_errno = errno; /* errno gets overwritten by printf */
@@ -110,6 +111,7 @@ static void set_last_error(void)
     }
     errno = save_errno;
 }
+#endif
 
 static const WCHAR wDevicemapScsi[] = {'H','A','R','D','W','A','R','E','\\','D','E','V','I','C','E','M','A','P','\\','S','c','s','i',0};
 



More information about the wine-patches mailing list