diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/snort/snort/disable-inaddr-none.patch')
-rw-r--r-- | meta-networking/recipes-connectivity/snort/snort/disable-inaddr-none.patch | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/snort/snort/disable-inaddr-none.patch b/meta-networking/recipes-connectivity/snort/snort/disable-inaddr-none.patch new file mode 100644 index 000000000..9dafe6345 --- /dev/null +++ b/meta-networking/recipes-connectivity/snort/snort/disable-inaddr-none.patch | |||
@@ -0,0 +1,75 @@ | |||
1 | Upstream-Status: Inappropriate [embedded specific] | ||
2 | |||
3 | fix the below error: | ||
4 | checking for INADDR_NONE... configure: | ||
5 | configure: error: cannot run test program while cross compiling | ||
6 | |||
7 | Signed-off-by: Chunrong Guo <B40290@freescale.com> | ||
8 | |||
9 | |||
10 | --- a/configure.in 2013-08-21 03:56:17.197414789 -0500 | ||
11 | +++ b/configure.in 2013-08-21 23:19:05.298553560 -0500 | ||
12 | @@ -281,25 +281,7 @@ | ||
13 | AC_CHECK_TYPES([boolean]) | ||
14 | |||
15 | # In case INADDR_NONE is not defined (like on Solaris) | ||
16 | -have_inaddr_none="no" | ||
17 | -AC_MSG_CHECKING([for INADDR_NONE]) | ||
18 | -AC_RUN_IFELSE( | ||
19 | -[AC_LANG_PROGRAM( | ||
20 | -[[ | ||
21 | -#include <sys/types.h> | ||
22 | -#include <netinet/in.h> | ||
23 | -#include <arpa/inet.h> | ||
24 | -]], | ||
25 | -[[ | ||
26 | - if (inet_addr("10,5,2") == INADDR_NONE); | ||
27 | - return 0; | ||
28 | -]])], | ||
29 | -[have_inaddr_none="yes"], | ||
30 | -[have_inaddr_none="no"]) | ||
31 | -AC_MSG_RESULT($have_inaddr_none) | ||
32 | -if test "x$have_inaddr_none" = "xno"; then | ||
33 | - AC_DEFINE([INADDR_NONE],[-1],[For INADDR_NONE definition]) | ||
34 | -fi | ||
35 | +have_inaddr_none="yes" | ||
36 | |||
37 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
38 | #include <stdio.h> | ||
39 | @@ -397,21 +379,21 @@ | ||
40 | fi | ||
41 | fi | ||
42 | |||
43 | -AC_MSG_CHECKING([for pcap_lex_destroy]) | ||
44 | -AC_RUN_IFELSE( | ||
45 | -[AC_LANG_PROGRAM( | ||
46 | -[[ | ||
47 | -#include <pcap.h> | ||
48 | -]], | ||
49 | -[[ | ||
50 | - pcap_lex_destroy(); | ||
51 | -]])], | ||
52 | -[have_pcap_lex_destroy="yes"], | ||
53 | -[have_pcap_lex_destroy="no"]) | ||
54 | -AC_MSG_RESULT($have_pcap_lex_destroy) | ||
55 | -if test "x$have_pcap_lex_destroy" = "xyes"; then | ||
56 | - AC_DEFINE([HAVE_PCAP_LEX_DESTROY],[1],[Can cleanup lex buffer stack created by pcap bpf filter]) | ||
57 | -fi | ||
58 | +#AC_MSG_CHECKING([for pcap_lex_destroy]) | ||
59 | +#AC_RUN_IFELSE( | ||
60 | +#[AC_LANG_PROGRAM( | ||
61 | +#[[ | ||
62 | +##include <pcap.h> | ||
63 | +#]], | ||
64 | +#[[ | ||
65 | +# pcap_lex_destroy(); | ||
66 | +#]])], | ||
67 | +have_pcap_lex_destroy="yes" | ||
68 | +#[have_pcap_lex_destroy="no"]) | ||
69 | +#AC_MSG_RESULT($have_pcap_lex_destroy) | ||
70 | +#if test "x$have_pcap_lex_destroy" = "xyes"; then | ||
71 | +# AC_DEFINE([HAVE_PCAP_LEX_DESTROY],[1],[Can cleanup lex buffer stack created by pcap bpf filter]) | ||
72 | +#fi | ||
73 | |||
74 | AC_MSG_CHECKING([for pcap_lib_version]) | ||
75 | AC_LINK_IFELSE( | ||