aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-11-07 01:53:08 -0600
committerJack Nagel2013-11-07 02:12:04 -0600
commit708d50ad736fd1668cfb689bfacfd24c1cef46d5 (patch)
tree1bd3947820a1886da2c1ce3b563a89c6d8d784d0 /Library
parent44e4f48ba3bdadca7126a9622f0a2e6fb185b776 (diff)
downloadhomebrew-708d50ad736fd1668cfb689bfacfd24c1cef46d5.tar.bz2
loudmouth: fix compilation on 10.9
Fixes #23658.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/loudmouth.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/loudmouth.rb b/Library/Formula/loudmouth.rb
index 1f494e2a2..a9b941b22 100644
--- a/Library/Formula/loudmouth.rb
+++ b/Library/Formula/loudmouth.rb
@@ -11,6 +11,10 @@ class Loudmouth < Formula
depends_on 'gnutls'
depends_on 'libidn'
+ # Fix compilation on 10.9. Sent upstream:
+ # https://github.com/mcabber/loudmouth/pull/9
+ def patches; DATA; end
+
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
@@ -18,3 +22,23 @@ class Loudmouth < Formula
system "make install"
end
end
+
+__END__
+diff --git a/loudmouth/lm-sock.c b/loudmouth/lm-sock.c
+index f3a2803..6e99eca 100644
+--- a/loudmouth/lm-sock.c
++++ b/loudmouth/lm-sock.c
+@@ -314,6 +314,13 @@ gboolean
+ _lm_sock_set_keepalive (LmOldSocketT sock, int delay)
+ {
+ #ifdef USE_TCP_KEEPALIVES
++
++#ifdef __APPLE__
++#ifndef TCP_KEEPIDLE
++#define TCP_KEEPIDLE TCP_KEEPALIVE
++#endif
++#endif
++
+ int opt;
+
+ opt = 1;