aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-05-02 19:58:24 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-05-02 19:58:24 +0000
commit94d2d7018a644251a4efd7754ccc4bf378418729 (patch)
tree6ba8c537cd59d58f2f3f068a2892281cef77e73f
parent94713bad761a1307f0722b8649a59c8601d22e74 (diff)
downloadports-94d2d7018a644251a4efd7754ccc4bf378418729.tar.gz
ports-94d2d7018a644251a4efd7754ccc4bf378418729.zip
security/snoopy: Fix build on 14-CURRENT
tid.c:52:23: error: incompatible pointer to integer conversion initializing 'unsigned long' with an expression of type 'pthread_t' (aka 'struct pthread *') [-Wint-conversion] long unsigned int tid = pthread_self(); ^ ~~~~~~~~~~~~~~ 1 error generated. Reference: https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/p100a5c5dca85_sb347c22846/logs/snoopy-2.4.15.log
-rw-r--r--security/snoopy/files/patch-src-datasource-tid.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/snoopy/files/patch-src-datasource-tid.c b/security/snoopy/files/patch-src-datasource-tid.c
new file mode 100644
index 000000000000..240a9dc72e93
--- /dev/null
+++ b/security/snoopy/files/patch-src-datasource-tid.c
@@ -0,0 +1,11 @@
+--- src/datasource/tid.c.orig 2021-04-20 15:35:54 UTC
++++ src/datasource/tid.c
+@@ -49,7 +49,7 @@
+ */
+ int snoopy_datasource_tid (char * const result, char const * const arg)
+ {
+- long unsigned int tid = pthread_self();
++ long unsigned int tid = (long unsigned int) pthread_self();
+
+ // This happens if -lpthread is not given to compiler
+ if (0 == tid) {