X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fmain.c;h=9a7f8e1987a7d8a7def941e471df7f37bc500e79;hb=f4ba0d4b24301f389dfb76a66094b093125fac9b;hp=ecb07f83ff378fb6c2c725220396642a68b551f5;hpb=9ffa67f4da7766dddfd3d610fba7693cba24d2bc;p=pspp diff --git a/src/ui/gui/main.c b/src/ui/gui/main.c index ecb07f83ff..9a7f8e1987 100644 --- a/src/ui/gui/main.c +++ b/src/ui/gui/main.c @@ -22,11 +22,22 @@ #include #include #include -#include #if ENABLE_RELOCATABLE && defined(__APPLE__) +#include static const bool apple_relocatable = true; #else static const bool apple_relocatable = false; +#if HAVE_SYS_RESOURCE_H +#include +#else +/* Dummy definitions to keep the compiler happy. */ +struct rlimit +{ + int rlim_cur; + int rlim_max; +}; +#define RLIMIT_NOFILE 0 +#endif #endif #include "language/lexer/include-path.h"