diff options
author | Jay Freeman <saurik@saurik.com> | 2008-12-06 04:25:19 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-12-06 04:25:19 +0000 |
commit | aff4f16ad53014ee8d136198159cf8fc1c74d9ef (patch) | |
tree | d0c0a6dc8544fb51e7ca25a49e61250b4d0b744b /data/raop-play/getline.diff | |
parent | 4e9b2830925e8ef8851e3d634a72ae315ffab7f9 (diff) |
Added raop-play for dotequals.
git-svn-id: http://svn.telesphoreo.org/trunk@519 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/raop-play/getline.diff')
-rw-r--r-- | data/raop-play/getline.diff | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/data/raop-play/getline.diff b/data/raop-play/getline.diff new file mode 100644 index 000000000..3205fd2ae --- /dev/null +++ b/data/raop-play/getline.diff @@ -0,0 +1,37 @@ +diff -ru raop_play-0.5.1/raop_play/pls_stream.c raop_play-0.5.1+iPhone/raop_play/pls_stream.c +--- raop_play-0.5.1/raop_play/pls_stream.c 2005-12-16 14:17:01.000000000 +0000 ++++ raop_play-0.5.1+iPhone/raop_play/pls_stream.c 2008-12-06 04:06:57.000000000 +0000 +@@ -29,6 +29,9 @@ + #include "aexcl_lib.h" + + ++/* XXX: this is slightly wrong, but I don't think this code cares */ ++#define getline(a, b, c) (fgets(*a, *b, c) == NULL ? -1 : strlen(*a)) ++ + + static int str_termlf(char *line) + { +diff -ru raop_play-0.5.1/rendezvous/Client.c raop_play-0.5.1+iPhone/rendezvous/Client.c +--- raop_play-0.5.1/rendezvous/Client.c 2005-12-16 14:17:02.000000000 +0000 ++++ raop_play-0.5.1+iPhone/rendezvous/Client.c 2008-12-06 04:07:02.000000000 +0000 +@@ -83,8 +83,11 @@ + #include "mDNSClientAPI.h"// Defines the interface to the mDNS core code + #include "mDNSPosix.h" // Defines the specific types needed to run mDNS on this platform + #include "ExampleClientApp.h" + #include "mDNS.h" + ++/* XXX: this is slightly wrong, but I don't think this code cares */ ++#define getline(a, b, c) (fgets(*a, *b, c) == NULL ? -1 : strlen(*a)) ++ + + // Globals + static mDNS mDNSStorage; // mDNS core uses this to store its globals +@@ -106,7 +108,7 @@ + char fname[128],wfname[128]; + FILE *inf,*outf; + char *sline; +- size_t linelen=128; ++ size_t linelen=128*128; + int i,ln,ws,cp1=0,cp2=0,cp3=0; + + if(addr->type != mDNSAddrType_IPv4) return -1; |