blob: e724b4ceab79a19fe7b41ab5469b51e8e2fc73a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
|