From d603c20909faeec8cf1ca1f85418d82ddde631db Mon Sep 17 00:00:00 2001 From: Kurt Jaeger Date: Fri, 24 Jul 2020 15:17:00 +0000 Subject: games/powwow: update 1.2.17 -> 1.2.22 PR: 247902 Submitted by: Juraj Lutter (maintainer) Relnotes: https://www.hoopajoo.net/projects/powwow.html https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247902#c0 --- games/powwow/files/patch-src_ptr.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 games/powwow/files/patch-src_ptr.c (limited to 'games/powwow/files/patch-src_ptr.c') diff --git a/games/powwow/files/patch-src_ptr.c b/games/powwow/files/patch-src_ptr.c new file mode 100644 index 000000000000..f43f642118ae --- /dev/null +++ b/games/powwow/files/patch-src_ptr.c @@ -0,0 +1,29 @@ +--- src/ptr.c.orig 2020-07-01 02:48:35 UTC ++++ src/ptr.c +@@ -10,6 +10,10 @@ + * + */ + ++#ifdef BSD_LIKE ++#define __BSD_VISIBLE 1 ++#endif ++ + #include + #include + #include +@@ -415,6 +419,7 @@ char *ptrchr(ptr p, char c) + return (char*)p; /* shortcut for NULL */ + } + ++#ifdef _GNU_SOURCE + /* + * find last occurrence of c in p + * return NULL if none found. +@@ -435,6 +440,7 @@ char *memrchr(char *p, int lenp, char c) + else + return NULL; + } ++#endif + + char *ptrrchr(ptr p, char c) + { -- cgit v1.2.3