Skip to content
Browse files

potential Windows build fix that is compatible with the perl FKO module

  • Loading branch information...
1 parent eaba581 commit 6fc3039b8241e869fcdd55aab3f2cd8679ac3950 @mrash committed Nov 29, 2012
View
4 common/Makefile.am
@@ -1 +1,3 @@
-EXTRA_DIST = common.h netinet_common.h
+EXTRA_DIST = fko_common_consts.h fko_netinet_common.h
+
+include_HEADERS = fko_common_consts.h fko_netinet_common.h
View
0 common/common.h → common/fko_common_consts.h
File renamed without changes.
View
0 common/netinet_common.h → common/fko_netinet_common.h
File renamed without changes.
View
6 lib/fko_message.c
@@ -33,12 +33,6 @@
#include "fko_message.h"
#include "fko.h"
-/* for inet_aton() IP validation
-*/
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
static int
have_allow_ip(const char *msg)
{
View
3 lib/fko_message.h
@@ -32,6 +32,9 @@
#ifndef FKO_MESSAGE_H
#define FKO_MESSAGE_H 1
+#include "fko_common_consts.h"
+#include "fko_netinet_common.h"
+
#define MAX_PROTO_STR_LEN 4 /* tcp, udp, icmp for now */
#define MAX_PORT_STR_LEN 5
View
2 perl/FKO/Makefile.PL
@@ -33,7 +33,7 @@ WriteMakefile(
AUTHOR => 'Damien S. Stuart <dstuart@dstuart.org>') : ()),
LIBS => ['-L../../lib/.libs -lfko'],
DEFINE => '', # e.g., '-DHAVE_SOMETHING'
- INC => '-I. -I../../lib',
+ INC => '-I. -I../../lib -I../../common',
# Un-comment this if you add C files to link with later:
# OBJECT => '$(O_FILES)', # link all the C files too
);

0 comments on commit 6fc3039

Please sign in to comment.
Something went wrong with that request. Please try again.