tetromino    15/07/18 20:10:44

  Added:                gmt-4.5.9-unistd.h.patch
  Log:
  Non-maintainer commit: fix build on modern glibc versions (bug #543624, 
thanks to Andreas Plesch et al.)
  
  (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 
0x18E5B6F2D8D5EC8D)

Revision  Changes    Path
1.1                  sci-geosciences/gmt/files/gmt-4.5.9-unistd.h.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gmt/files/gmt-4.5.9-unistd.h.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gmt/files/gmt-4.5.9-unistd.h.patch?rev=1.1&content-type=text/plain

Index: gmt-4.5.9-unistd.h.patch
===================================================================
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




Reply via email to