Francois Gouget : kernel: Protect sys/resource.h include.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Mar 3 08:47:18 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 2f29c779d48b027773a57ff383cbc29d6bb81ccf
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=2f29c779d48b027773a57ff383cbc29d6bb81ccf

Author: Francois Gouget <fgouget at free.fr>
Date:   Thu Mar  2 19:37:37 2006 +0100

kernel: Protect sys/resource.h include.

---

 dlls/kernel/heap.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel/heap.c b/dlls/kernel/heap.c
index 3df7bbc..59a5e9f 100644
--- a/dlls/kernel/heap.c
+++ b/dlls/kernel/heap.c
@@ -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-cvs mailing list