aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/pinpoint/files/patch-pinpoint.c
blob: 284cda444560a881d3867f4af688afefbb19b3c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- pinpoint.c.orig 2011-05-23 07:49:55.000000000 -0500
+++ pinpoint.c  2011-06-26 04:23:53.780817124 -0500
@@ -31,6 +31,21 @@
 
 #include "pinpoint.h"
 
+#ifndef __GLIBC__
+/* ref: http://lists.freebsd.org/pipermail/freebsd-ports/2009-June/055131.html */
+
+char *strchrnul(const char *s, int c) {
+  char *i;
+  for (i = (char*)s; *i != '\0'; ++i) {
+    if (*i == c) {
+      return i;
+    }
+  }
+  return i;
+}
+
+#endif
+
 GList *pp_slides      = NULL; /* list of slide text */
 GList *pp_slidep      = NULL; /* current slide */