kernel: Protect sys/resource.h include
Francois Gouget
fgouget at free.fr
Thu Mar 2 12:37:37 CST 2006
Changelog:
* dlls/kernel/heap.c
Francois Gouget <fgouget at free.fr>
kernel: Protect sys/resource.h include (spotted by winapi_check).
--
Francois Gouget <fgouget at free.fr> http://fgouget.free.fr/
You can have my guns when you pry them from my kids cold, dead hands.
-------------- next part --------------
Index: dlls/kernel/heap.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/heap.c,v
retrieving revision 1.28
diff -u -p -r1.28 heap.c
--- dlls/kernel/heap.c 5 Feb 2006 12:58:20 -0000 1.28
+++ dlls/kernel/heap.c 2 Mar 2006 14:48:15 -0000
@@ -44,7 +44,9 @@
/* FIXME: Unfortunately swapctl can't be used with largefile.... */
# undef _FILE_OFFSET_BITS
# define _FILE_OFFSET_BITS 32
-# include <sys/resource.h>
+# ifdef HAVE_SYS_RESOURCE_H
+# include <sys/resource.h>
+# endif
# ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
# endif
More information about the wine-patches
mailing list