diff options
author | flz <flz@FreeBSD.org> | 2009-02-24 17:26:48 +0000 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2009-02-24 17:26:48 +0000 |
commit | b409d62916a1246724e2a1263fee3c6ece6d980d (patch) | |
tree | fa6047cc631e6ca0d67b7ce463423a6fe96f3573 /multimedia/moonlight/files/patch-src_debug.cpp | |
parent | 83121e9dc3975b5341578b9e34afbea44ccbac87 (diff) | |
download | FreeBSD-ports-b409d62916a1246724e2a1263fee3c6ece6d980d.zip FreeBSD-ports-b409d62916a1246724e2a1263fee3c6ece6d980d.tar.gz |
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.
Diffstat (limited to 'multimedia/moonlight/files/patch-src_debug.cpp')
-rw-r--r-- | multimedia/moonlight/files/patch-src_debug.cpp | 22 |
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) + { |