aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorYoungTaek Oh2012-08-25 01:07:13 +0900
committerAdam Vandenberg2012-10-28 08:27:06 -0700
commit294ed0a827e3ed8b3b500fd0125aa3be9f3c26cc (patch)
treeb16cd4df1fefe87e0eefea4b952c7273e8ed9a11 /Library/Formula
parent451b2adc62a7bd609779d45910989954734e3668 (diff)
downloadhomebrew-294ed0a827e3ed8b3b500fd0125aa3be9f3c26cc.tar.bz2
geomview: fix compile on 10.8
Closes #14436. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/geomview.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/geomview.rb b/Library/Formula/geomview.rb
index 0ce6e1f93..53feeeff9 100644
--- a/Library/Formula/geomview.rb
+++ b/Library/Formula/geomview.rb
@@ -8,6 +8,11 @@ class Geomview < Formula
depends_on :x11
depends_on 'lesstif'
+ # Per MacPorts: https://trac.macports.org/ticket/35856
+ def patches
+ DATA
+ end
+
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
@@ -15,3 +20,17 @@ class Geomview < Formula
system "make install"
end
end
+
+__END__
+diff --git a/src/bin/animate/glob.c b/src/bin/animate/glob.c
+index f573f9c..2d80834 100644
+--- a/src/bin/animate/glob.c
++++ b/src/bin/animate/glob.c
+@@ -41,7 +41,7 @@ static char sccsid[] = "@(#)glob.c 5.7 (Berkeley) 12/14/88";
+ #include <errno.h>
+ #include <pwd.h>
+
+-#if !defined(dirfd) && !defined(__GLIBC__) && !defined(__linux__) && !defined(__FreeBSD__) && !defined(__CYGWIN__)
++#if !defined(dirfd) && !defined(__APPLE__) && !defined(__GLIBC__) && !defined(__linux__) && !defined(__FreeBSD__) && !defined(__CYGWIN__)
+ #define dirfd(dirp) ((dirp)->dd_fd)
+ #endif