summaryrefslogtreecommitdiffstats
path: root/multimedia/moonlight/files/patch-src_debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/moonlight/files/patch-src_debug.cpp')
-rw-r--r--multimedia/moonlight/files/patch-src_debug.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/multimedia/moonlight/files/patch-src_debug.cpp b/multimedia/moonlight/files/patch-src_debug.cpp
new file mode 100644
index 0000000..d8c584f
--- /dev/null
+++ b/multimedia/moonlight/files/patch-src_debug.cpp
@@ -0,0 +1,22 @@
+--- 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)
+ {
OpenPOWER on IntegriCloud