Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Bugfix on geomview - compile fails due to wrong dirfd macro. #14436

Closed
wants to merge 1 commit into from

3 participants

@youngtaekoh

OS X provides 'dirfd'.

@jacknagel
Owner

Please also send the patch upstream.

@adamv
Owner

Which OSes/Xcodes does this reproduce on?

@adamv
Owner

Compiled for me fine on Lion w/ Xcode 4.3.2.

@youngtaekoh
@adamv adamv closed this pull request from a commit
@youngtaekoh youngtaekoh geomview: fix compile on 10.8
Closes #14436.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
294ed0a
@adamv adamv closed this in 294ed0a
@theirix theirix referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@sessyargc sessyargc referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@snakeyroc3 snakeyroc3 referenced this pull request from a commit in snakeyroc3/homebrew
@youngtaekoh youngtaekoh geomview: fix compile on 10.8
Closes #14436.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
23e5dc6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 24, 2012
  1. @youngtaekoh
This page is out of date. Refresh to see the latest.
Showing with 18 additions and 0 deletions.
  1. +18 −0 Library/Formula/geomview.rb
View
18 Library/Formula/geomview.rb
@@ -8,6 +8,10 @@ class Geomview < Formula
depends_on :x11
depends_on 'lesstif'
+ def patches
+ DATA
+ end
+
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
@@ -15,3 +19,17 @@ def install
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
Something went wrong with that request. Please try again.