gdmap: fix patch

This commit is contained in:
FX Coudert 2019-10-21 19:24:56 +02:00
parent 2b6ea65995
commit 383f0a5aba

View file

@ -24,7 +24,10 @@ class Gdmap < Formula
# The second patch is to remove an unused system header import on one of the files.
# This header file doesn't exist in OSX and the program compiles and runs fine without it.
# Filed bug upstream as https://sourceforge.net/p/gdmap/bugs/19/
patch :DATA
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/85fa66a9/gdmap/0.8.1.patch"
sha256 "292cc974405f0a8c7f6dc32770f81057e67eac6e4fcb1fc575e1f02e044cf9c3"
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
@ -37,30 +40,3 @@ class Gdmap < Formula
system "#{bin}/gdmap", "--help"
end
end
__END__
diff --git a/configure b/configure
index fc7ed80..bb408d3 100755
--- a/configure
+++ b/configure
@@ -8225,7 +8225,7 @@ else
echo "${ECHO_T}yes" >&6; }
:
fi
-UI_CFLAGS="$UI_CFLAGS -DGTK_DISABLE_DEPRECATED"
+#UI_CFLAGS="$UI_CFLAGS -DGTK_DISABLE_DEPRECATED"
diff --git a/src/gui_main.c b/src/gui_main.c
index efe2239..91c2a14 100644
--- a/src/gui_main.c
+++ b/src/gui_main.c
@@ -11,7 +11,6 @@
# include <config.h>
#endif
-#include <sys/vfs.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>