Changeset: 189ee82b7b15 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=189ee82b7b15 Modified Files: gdk/gdk_system.mx gdk/gdk_utils.mx Branch: default Log Message:
gdk: include sys/sysctl.h when available It helps when you actually include the header that you're testing constants to be defined from. Fixes compilation on Darwin. diffs (28 lines): diff --git a/gdk/gdk_system.mx b/gdk/gdk_system.mx --- a/gdk/gdk_system.mx +++ b/gdk/gdk_system.mx @@ -75,6 +75,10 @@ # include <semaphore.h> #endif +#ifdef HAVE_SYS_SYSCTL_H +# include <sys/sysctl.h> +#endif + /* new pthread interface, where the thread id changed to a struct */ #ifdef PTW32_VERSION #define PTW32 1 diff --git a/gdk/gdk_utils.mx b/gdk/gdk_utils.mx --- a/gdk/gdk_utils.mx +++ b/gdk/gdk_utils.mx @@ -58,6 +58,10 @@ # include <pwd.h> #endif +#ifdef HAVE_SYS_SYSCTL_H +# include <sys/sysctl.h> +#endif + #ifdef NATIVE_WIN32 #define chdir _chdir #endif _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list