PATCH: fix warnings

Jeff Garzik jgarzik at mandrakesoft.com
Wed Mar 21 04:56:14 CST 2001


The attached patch against WINE CVS adds some inclusions of string.h
where necessary.

glibc 2.2.2 includes much more strict headers, which helps flag code
that previously relied on implicit inclusion of a header via random
include nesting.

-- 
Jeff Garzik       | May you have warm words on a cold evening,
Building 1024     | a full mooon on a dark night,
MandrakeSoft      | and a smooth road all the way to your door.
-------------- next part --------------
Index: scheduler/pthread.c
===================================================================
RCS file: /home/wine/wine/scheduler/pthread.c,v
retrieving revision 1.12
diff -u -r1.12 pthread.c
--- scheduler/pthread.c	2001/02/27 01:54:20	1.12
+++ scheduler/pthread.c	2001/03/21 10:42:48
@@ -14,6 +14,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <string.h>
 
 #include "winbase.h"
 #include "thread.h"
Index: scheduler/synchro.c
===================================================================
RCS file: /home/wine/wine/scheduler/synchro.c,v
retrieving revision 1.27
diff -u -r1.27 synchro.c
--- scheduler/synchro.c	2001/03/08 01:16:42	1.27
+++ scheduler/synchro.c	2001/03/21 10:42:48
@@ -9,6 +9,7 @@
 #include <signal.h>
 #include <sys/time.h>
 #include <unistd.h>
+#include <string.h>
 
 #include "file.h"  /* for DOSFS_UnixTimeToFileTime */
 #include "thread.h"
Index: server/atom.c
===================================================================
RCS file: /home/wine/wine/server/atom.c,v
retrieving revision 1.7
diff -u -r1.7 atom.c
--- server/atom.c	2000/12/19 02:12:46	1.7
+++ server/atom.c	2001/03/21 10:42:48
@@ -8,6 +8,7 @@
 #include <assert.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 
 #include "unicode.h"
 #include "request.h"
Index: tools/winebuild/spec32.c
===================================================================
RCS file: /home/wine/wine/tools/winebuild/spec32.c,v
retrieving revision 1.26
diff -u -r1.26 spec32.c
--- tools/winebuild/spec32.c	2001/02/13 02:06:38	1.26
+++ tools/winebuild/spec32.c	2001/03/21 10:42:49
@@ -11,6 +11,7 @@
 #include <assert.h>
 #include <ctype.h>
 #include <unistd.h>
+#include <string.h>
 
 #include "config.h"
 #include "winbase.h"
Index: tools/wmc/mcl.c
===================================================================
RCS file: /home/wine/wine/tools/wmc/mcl.c,v
retrieving revision 1.1
diff -u -r1.1 mcl.c
--- tools/wmc/mcl.c	2000/06/13 04:34:42	1.1
+++ tools/wmc/mcl.c	2001/03/21 10:42:49
@@ -8,6 +8,7 @@
 #include <stdlib.h>
 #include <ctype.h>
 #include <assert.h>
+#include <string.h>
 
 #include "config.h"
 


More information about the wine-patches mailing list