summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-geosciences/gmt/files/gmt-4.5.9-unistd.h.patch')
-rw-r--r--sci-geosciences/gmt/files/gmt-4.5.9-unistd.h.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/sci-geosciences/gmt/files/gmt-4.5.9-unistd.h.patch b/sci-geosciences/gmt/files/gmt-4.5.9-unistd.h.patch
new file mode 100644
index 000000000000..e724b4ceab79
--- /dev/null
+++ b/sci-geosciences/gmt/files/gmt-4.5.9-unistd.h.patch
@@ -0,0 +1,19 @@
+Fix "gmtdigitize.c:77:2: error: unknown type name 'gid_t'"
+build failure; patch from upstream version 4.5.11
+
+https://bugs.gentoo.org/show_bug.cgi?id=543624
+
+--- a/src/misc/gmtdigitize.c
++++ b/src/misc/gmtdigitize.c
+@@ -37,6 +37,11 @@
+ *
+ */
+
++#define _XOPEN_SOURCE
++#ifdef HAVE_UNISTD_H
++#include <unistd.h>
++#endif
++
+ #include "gmt.h"
+
+ #ifndef WIN32