[GMT] Add patch to add needed includes
Orion Poplawski
orion at fedoraproject.org
Wed Jan 23 03:57:12 UTC 2013
commit 841100d0df054a4c0f0b63fbcea76affec3b431a
Author: Orion Poplawski <orion at cora.nwra.com>
Date: Tue Jan 22 20:57:07 2013 -0700
Add patch to add needed includes
GMT-includes.patch | 12 ++++++++++++
GMT.spec | 4 ++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/GMT-includes.patch b/GMT-includes.patch
new file mode 100644
index 0000000..b33ffda
--- /dev/null
+++ b/GMT-includes.patch
@@ -0,0 +1,12 @@
+diff -up GMT4.5.9/src/misc/gmtdigitize.c.includes GMT4.5.9/src/misc/gmtdigitize.c
+--- GMT4.5.9/src/misc/gmtdigitize.c.includes 2012-12-18 13:45:55.000000000 -0700
++++ GMT4.5.9/src/misc/gmtdigitize.c 2013-01-22 20:54:51.367841719 -0700
+@@ -39,6 +39,8 @@
+
+ #include "gmt.h"
+
++#include <sys/types.h>
++
+ #ifndef WIN32
+ #include <termios.h>
+ #endif
diff --git a/GMT.spec b/GMT.spec
index f474099..07d7a32 100644
--- a/GMT.spec
+++ b/GMT.spec
@@ -18,6 +18,8 @@ Group: Applications/Engineering
License: GPLv2+
URL: http://gmt.soest.hawaii.edu/
Source0: ftp://ftp.soest.hawaii.edu/gmt/gmt-%{version}.tar.bz2
+# Add needed includes
+Patch0: GMT-includes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gdal-devel
@@ -125,6 +127,7 @@ GMT 2 dimensional grids.
%prep
%setup -q -n GMT%{version}
+%patch0 -p1 -b .includes
#We don't care about .bat files
find -name \*.bat | xargs rm
#Fix permissions
@@ -250,6 +253,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Tue Jan 22 2013 Orion Poplawski <orion at cora.nwra.com> 4.5.9-1
- Update to 4.5.9
+- Add patch to add needed includes
* Tue Apr 3 2012 Orion Poplawski <orion at cora.nwra.com> 4.5.8-1
- Update to 4.5.8
More information about the scm-commits
mailing list