--- mono/utils/mono-state.c 2019-01-18 10:59:39.355034555 +0100
+++ mono/utils/mono-state.c 2019-01-18 11:00:48.212036254 +0100
@@ -33,7 +33,9 @@
#endif
#include <sys/param.h>
+#if defined(__GLIBC__)
#include <sys/sysctl.h>
+#endif
#include <fcntl.h>
typedef struct {