Skip to content
Browse files

geomview: fix compile on 10.8

Closes #14436.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
1 parent 805200a commit 23e5dc61f4f586f32cdc53f7bb6962c87ba95b93 @youngtaekoh youngtaekoh committed with adamv Aug 25, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 Library/Formula/geomview.rb
View
19 Library/Formula/geomview.rb
@@ -8,10 +8,29 @@ 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",
"--prefix=#{prefix}"
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

0 comments on commit 23e5dc6

Please sign in to comment.
Something went wrong with that request. Please try again.