Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/snort/files/
Date: Sat, 05 Sep 2020 10:33:18
Message-Id: 1599301991.0621697eecc3615e6c69cbf3a9a49a1bbabdc112.jer@gentoo
1 commit: 0621697eecc3615e6c69cbf3a9a49a1bbabdc112
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 5 10:31:45 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 5 10:33:11 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0621697e
7
8 net-analyzer/snort: Guard PreprocStats definitions
9
10 Package-Manager: Portage-3.0.5, Repoman-3.0.1
11 Closes: https://bugs.gentoo.org/740440
12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
13
14 net-analyzer/snort/files/snort-2.9.15.1-fno-common.patch | 8 ++++++--
15 1 file changed, 6 insertions(+), 2 deletions(-)
16
17 diff --git a/net-analyzer/snort/files/snort-2.9.15.1-fno-common.patch b/net-analyzer/snort/files/snort-2.9.15.1-fno-common.patch
18 index 9fe39933ddf..f5e3b3bbe34 100644
19 --- a/net-analyzer/snort/files/snort-2.9.15.1-fno-common.patch
20 +++ b/net-analyzer/snort/files/snort-2.9.15.1-fno-common.patch
21 @@ -29,11 +29,13 @@
22 void InitJSNormLookupTable(void);
23 --- a/src/preprocessors/spp_session.h
24 +++ b/src/preprocessors/spp_session.h
25 -@@ -28,6 +28,8 @@
26 +@@ -28,6 +28,10 @@
27 #include "decode.h"
28 #include "session_common.h"
29
30 ++#ifdef PERF_PROFILING
31 +extern PreprocStats sessionPerfStats;
32 ++#endif
33 +
34 /* list of function prototypes for this preprocessor */
35 void SetupSessionManager(void);
36 @@ -97,10 +99,12 @@
37
38 --- a/src/detection-plugins/sp_session.h
39 +++ b/src/detection-plugins/sp_session.h
40 -@@ -29,5 +29,6 @@
41 +@@ -29,5 +29,8 @@
42 void SetupSession(void);
43 uint32_t SessionHash(void *d);
44 int SessionCompare(void *l, void *r);
45 ++#ifdef PERF_PROFILING
46 +extern PreprocStats sp_sessionPerfStats;
47 ++#endif
48
49 #endif /* __SP_SESSION_H__ */