diff options
| author | Alexis Hildebrandt | 2013-07-21 09:39:31 +0200 |
|---|---|---|
| committer | Jack Nagel | 2013-07-26 16:05:35 -0500 |
| commit | 67984b78a0753f9b23bee5ebce07f1a2dd3b916f (patch) | |
| tree | f062205d623cf22ed1c576393eda55e0479f7ae3 /Library | |
| parent | 4e18c38ff805ca170ee359a0ad175695e62c2a71 (diff) | |
| download | homebrew-67984b78a0753f9b23bee5ebce07f1a2dd3b916f.tar.bz2 | |
ushare: add patch to compile with newer libupnp
Closes #21361.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ushare.rb | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Library/Formula/ushare.rb b/Library/Formula/ushare.rb index fd1723f56..05baecfb9 100644 --- a/Library/Formula/ushare.rb +++ b/Library/Formula/ushare.rb @@ -13,7 +13,8 @@ class Ushare < Formula # Correct "OPTFLAGS" to "CFLAGS" def patches { :p0 => - "https://trac.macports.org/export/89267/trunk/dports/net/ushare/files/patch-configure.diff" + "https://trac.macports.org/export/89267/trunk/dports/net/ushare/files/patch-configure.diff", + :p1 => DATA, } end @@ -39,3 +40,18 @@ class Ushare < Formula man1.install "src/ushare.1" end end + +__END__ +diff --git a/src/ushare.c b/src/ushare.c +index 717e862..8e51bf7 100644 +--- a/src/ushare.c ++++ b/src/ushare.c +@@ -188,7 +188,7 @@ handle_action_request (struct Upnp_Action_Request *request) + if (strcmp (request->DevUDN + 5, ut->udn)) + return; + +- ip = request->CtrlPtIPAddr.s_addr; ++ ip = ((struct sockaddr *) &request->CtrlPtIPAddr)->sa_data; + ip = ntohl (ip); + sprintf (val, "%d.%d.%d.%d", + (ip >> 24) & 0xFF, (ip >> 16) & 0xFF, (ip >> 8) & 0xFF, ip & 0xFF); |
