include file compilation fix for OpenBSD relative to inet_aton() IP verification
authorMichael Rash <mbr@cipherdyne.org>
Tue, 4 Sep 2012 02:18:59 +0000 (22:18 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Tue, 4 Sep 2012 02:18:59 +0000 (22:18 -0400)
lib/fko_message.c
lib/fko_message.h

index d74d58a..d7361f9 100644 (file)
@@ -29,8 +29,8 @@
  *
  *****************************************************************************
 */
-#include "fko_message.h"
 #include "fko_common.h"
+#include "fko_message.h"
 #include "fko.h"
 
 /* Set the SPA message type.
index 7be313a..cb61ed1 100644 (file)
 #ifndef FKO_MESSAGE_H
 #define FKO_MESSAGE_H 1
 
-#if HAVE_SYS_SOCKET_H
-  #include <sys/socket.h>
+#if PLATFORM_OPENBSD
+  #include <sys/types.h>
+  #include <netinet/in.h>
+#else
+  #if HAVE_SYS_SOCKET_H
+    #include <sys/socket.h>
+  #endif
 #endif
 #include <arpa/inet.h>