diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/snort/files/disable-dap-address-space-id.patch')
-rw-r--r-- | meta-networking/recipes-connectivity/snort/files/disable-dap-address-space-id.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/snort/files/disable-dap-address-space-id.patch b/meta-networking/recipes-connectivity/snort/files/disable-dap-address-space-id.patch new file mode 100644 index 0000000000..39e5c9c03a --- /dev/null +++ b/meta-networking/recipes-connectivity/snort/files/disable-dap-address-space-id.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | Upstream-Status:Inappropriate [embedded specific] | ||
2 | |||
3 | fix the below error: | ||
4 | checking for dap address space id... configure: | ||
5 | configure: error: cannot run test program while cross compiling | ||
6 | |||
7 | |||
8 | Signed-off-by: Chunrong Guo <B40290@freescale.com> | ||
9 | |||
10 | --- a/configure.in 2013-08-23 00:06:37.239361932 -0500 | ||
11 | +++ b/configure.in 2013-08-23 00:07:32.860266534 -0500 | ||
12 | @@ -679,23 +679,23 @@ | ||
13 | |||
14 | AC_CHECK_FUNCS([daq_hup_apply] [daq_acquire_with_meta]) | ||
15 | |||
16 | -AC_MSG_CHECKING([for daq address space ID]) | ||
17 | -AC_RUN_IFELSE( | ||
18 | -[AC_LANG_PROGRAM( | ||
19 | -[[ | ||
20 | -#include <daq.h> | ||
21 | -]], | ||
22 | -[[ | ||
23 | - DAQ_PktHdr_t hdr; | ||
24 | - hdr.address_space_id = 0; | ||
25 | -]])], | ||
26 | -[have_daq_address_space_id="yes"], | ||
27 | -[have_daq_address_space_id="no"]) | ||
28 | -AC_MSG_RESULT($have_daq_address_space_id) | ||
29 | -if test "x$have_daq_address_space_id" = "xyes"; then | ||
30 | - AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1], | ||
31 | - [DAQ version supports address space ID in header.]) | ||
32 | -fi | ||
33 | +#AC_MSG_CHECKING([for daq address space ID]) | ||
34 | +#AC_RUN_IFELSE( | ||
35 | +#[AC_LANG_PROGRAM( | ||
36 | +#[[ | ||
37 | +##include <daq.h> | ||
38 | +#]], | ||
39 | +#[[ | ||
40 | +# DAQ_PktHdr_t hdr; | ||
41 | +# hdr.address_space_id = 0; | ||
42 | +#]])], | ||
43 | +have_daq_address_space_id="yes" | ||
44 | +#[have_daq_address_space_id="no"]) | ||
45 | +#AC_MSG_RESULT($have_daq_address_space_id) | ||
46 | +#if test "x$have_daq_address_space_id" = "xyes"; then | ||
47 | +# AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1], | ||
48 | +# [DAQ version supports address space ID in header.]) | ||
49 | +#fi | ||
50 | |||
51 | # any sparc platform has to have this one defined. | ||
52 | AC_MSG_CHECKING(for sparc) | ||