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