freebsd-ports/multimedia/moonlight/files/patch-src_debug.cpp
Florent Thoumie 1da2f4b297 Add moonlight 1.0, the free opensource implementation of Microsoft Silverlight.
The port only supports Firefox 2 but support for Firefox 3 will arrive soon.
Also, there's no sound support at the moment either.
2009-02-24 17:26:48 +00:00

22 lines
506 B
C++

--- src/debug.cpp.orig 2009-01-13 19:41:33.000000000 +0000
+++ src/debug.cpp 2009-02-12 17:50:56.000000000 +0000
@@ -120,6 +120,19 @@
static Addr2LineData *addr2line_pipes = NULL;
+#ifndef getline
+gint64
+getline(char **buffer, size_t *len, FILE *stream)
+{
+ *buffer = (char *)calloc(1, 512); /* Should be plenty */
+
+ if (fgets(*buffer, 512, stream) == NULL)
+ return -1;
+ *len = strlen(*buffer);
+ return *len;
+}
+#endif
+
static char*
library_of_ip (gpointer ip, gpointer* base_address)
{