DragonflyBSD & NetBSD build fix
authorLoic Blot <loic.blot@unix-experience.fr>
Tue, 6 Jun 2017 21:02:03 +0000 (23:02 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Tue, 6 Jun 2017 21:02:03 +0000 (23:02 +0200)
src/porting.cpp

index 10b6fc94059c675af85165b669e65518bd606611..0cc323934ba18b2f56afdb8ad4e4e47a66f33c1c 100644 (file)
@@ -25,7 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include "porting.h"
 
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__)  || defined(__NetBSD__) || defined(__DragonFly__)
        #include <sys/types.h>
        #include <sys/sysctl.h>
 #elif defined(_WIN32)