mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
Fix detection of sparc64.
Obtained from: OpenBSD
This commit is contained in:
parent
b2fd75e438
commit
b3cecf32b4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83697
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= snort
|
||||
PORTVERSION= 2.0.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://www.snort.org/dl/
|
||||
|
||||
|
13
security/snort/files/patch-src_preprocessors_spp_frag2_c
Normal file
13
security/snort/files/patch-src_preprocessors_spp_frag2_c
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-src_preprocessors_spp_frag2_c,v 1.1 2003/06/24 17:02:38 pvalchev Exp $
|
||||
--- src/preprocessors/spp_frag2.c.orig Wed Apr 9 09:45:15 2003
|
||||
+++ src/preprocessors/spp_frag2.c Mon Jun 23 17:00:19 2003
|
||||
@@ -93,7 +93,8 @@ void Frag2Init(u_char *args);
|
||||
#define FRAG2_TTL_LIMIT 5
|
||||
#define FRAG2_MIN_TTL 0
|
||||
|
||||
-#if defined (SOLARIS) || defined (SUNOS)
|
||||
+#if defined (SOLARIS) || defined (SUNOS) || defined (__sparc__) || \
|
||||
+ defined (__sparc64__)
|
||||
#define SPARC_TWIDDLE 2
|
||||
#else
|
||||
#define SPARC_TWIDDLE 0
|
13
security/snort/files/patch-src_preprocessors_spp_stream4_c
Normal file
13
security/snort/files/patch-src_preprocessors_spp_stream4_c
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-src_preprocessors_spp_stream4_c,v 1.1 2003/06/24 17:02:38 pvalchev Exp $
|
||||
--- src/preprocessors/spp_stream4.c.orig Mon Jun 23 16:59:22 2003
|
||||
+++ src/preprocessors/spp_stream4.c Mon Jun 23 17:00:46 2003
|
||||
@@ -153,7 +153,8 @@ extern int *file_line;
|
||||
/* We must twiddle to align the offset the ethernet header and align
|
||||
the IP header on solaris -- maybe this will work on HPUX too.
|
||||
*/
|
||||
-#if defined (SOLARIS) || defined (SUNOS) || defined (HPUX)
|
||||
+#if defined (SOLARIS) || defined (SUNOS) || defined (HPUX) || \
|
||||
+ defined (__sparc__) || defined(__sparc64__)
|
||||
#define SPARC_TWIDDLE 2
|
||||
#else
|
||||
#define SPARC_TWIDDLE 0
|
Loading…
x
Reference in New Issue
Block a user