freebsd-ports/graphics/pinpoint/files/patch-pinpoint.c
Martin Wilke 8cfb12fa57 Pinpoint a simple presentation tool that hopes to avoid audience death
by bullet point and instead encourage presentations containing beautiful
images and small amounts of concise text in slides.

WWW: http://live.gnome.org/Pinpoint

PR:		ports/158309
Submitted by:	lichray at gmail.com
2011-06-27 15:32:43 +00:00

24 lines
537 B
C

--- 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 */