From 2151abc1474497dde91aff143da21cb7fc8bdbe1 Mon Sep 17 00:00:00 2001 From: Eric J Korpela Date: Wed, 31 Oct 2012 08:24:22 -0700 Subject: [PATCH] - wrapper: fix for likely compile problems on non-linux or older gcc caused by commit 9223fd2. The macros necessary to fix it already existed in config.h --- samples/wrapper/wrapper.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/samples/wrapper/wrapper.cpp b/samples/wrapper/wrapper.cpp index a7dbf46ee7..e1bf7908ec 100644 --- a/samples/wrapper/wrapper.cpp +++ b/samples/wrapper/wrapper.cpp @@ -28,6 +28,9 @@ // See http://boinc.berkeley.edu/trac/wiki/WrapperApp for details // Contributor: Andrew J. Younge (ajy4490@umiacs.umd.edu) +#ifndef _WIN32 +#include "config.h" +#endif #include #include #include @@ -35,11 +38,17 @@ #include "boinc_win.h" #include "win_util.h" #else +#ifdef HAVE_SYS_WAIT_H #include +#endif #include #include +#ifdef HAVE_SYS_TIME_H #include +#endif +#ifdef HAVE_SYS_RESOURCE_H #include +#endif #include #endif