Explorar o código

Fix build on bsd systems.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2336 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake %!s(int64=17) %!d(string=hai) anos
pai
achega
7954f19ac3
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      exec/evil.c

+ 4 - 0
exec/evil.c

@@ -49,7 +49,11 @@
 #include <sys/time.h>
 #include <sys/resource.h>
 #include <sys/stat.h>
+#if defined(COROSYNC_BSD) || defined(COROSYNC_DARWIN)
+#include <sys/sysctl.h>
+#else
 #include <sys/sysinfo.h>
+#endif
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <unistd.h>