freebsd-ports/games/powwow/files/patch-ptr.c
Pav Lucistnik 1e0e46e9bc - Update to 1.2.13
PR:		ports/124637
Submitted by:	Alex Kozlov <spam@rm-rf.kiev.ua>
Approved by:	maintainer
2008-06-18 20:47:42 +00:00

17 lines
271 B
C

Index: ptr.c
@@ -407,6 +407,7 @@
return (char*)p; /* shortcut for NULL */
}
+#ifdef _GNU_SOURCE
/*
* find last occurrence of c in p
* return NULL if none found.
@@ -427,6 +428,7 @@
else
return NULL;
}
+#endif
char *ptrrchr __P2 (ptr,p, char,c)
{