PATCH: dlls/ntdll/ntdll_misc.h and struct timeval

Gerald Pfeifer pfeifer at dbai.tuwien.ac.at
Wed Apr 2 02:21:47 CST 2003


dlls/ntdll/ntdll_misc.h now uses struct timeval even though that has
not been introduced (at least on FreeBSD):

  In file included from ../../loader/pe_image.c:49:
  ntdll_misc.h:31: warning: `struct timeval' declared inside parameter
                   list
  ntdll_misc.h:31: warning: its scope is only this definition or
                   declaration, which is probably not what you want.

Fixed thusly.

Gerald

ChangeLog:
  #include <unistd.h> for a definition of struct timeval.
Index: ntdll_misc.h
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/ntdll_misc.h,v
retrieving revision 1.12
diff -u -3 -p -r1.12 ntdll_misc.h
--- ntdll_misc.h	31 Mar 2003 01:37:05 -0000	1.12
+++ ntdll_misc.h	2 Apr 2003 08:19:32 -0000
@@ -19,6 +19,7 @@
 #ifndef __WINE_NTDLL_MISC_H
 #define __WINE_NTDLL_MISC_H

+#include <unistd.h>
 #include "winnt.h"
 #include "winternl.h"
 #include "module.h"



More information about the wine-patches mailing list