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.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 games/powwow/files/patch-src_ptr.h (limited to 'games/powwow/files/patch-src_ptr.h') diff --git a/games/powwow/files/patch-src_ptr.h b/games/powwow/files/patch-src_ptr.h new file mode 100644 index 000000000000..a249aeead0e2 --- /dev/null +++ b/games/powwow/files/patch-src_ptr.h @@ -0,0 +1,16 @@ +--- src/ptr.h.orig 2020-07-10 20:58:54 UTC ++++ src/ptr.h +@@ -64,12 +64,12 @@ char *memchrs(char *p, int lenp, char *q, int lenq); + char *memrchrs(char *p, int lenp, char *q, int lenq); + #ifdef _GNU_SOURCE + # define memfind memmem ++char *memrchr(char *p, int lenp, char c); + #else + char *memfind(char *hay, int haylen, char *needle, int needlelen); + /* TODO: watch memrchr, it is defined differently here than under _GNU_SOURCE, + * so it could cause bizarre results if a module makes use of a library that + * uses it */ +-char *memrchr(char *p, int lenp, char c); + #endif + + #endif /* _PTR_H_ */ -- cgit v1.2.3