graphics/gmt: fix build on big-endian

ld: error: src/libgmt.so.6.3.0: undefined reference to bswap32 [--no-allow-shlib-undefined]
This commit is contained in:
Piotr Kubaj 2022-01-04 18:11:41 +00:00
parent f6e17b1726
commit 4e9442df82

View File

@ -0,0 +1,10 @@
--- src/grd2xyz.c.orig 2022-01-03 22:31:11 UTC
+++ src/grd2xyz.c
@@ -23,6 +23,7 @@
* Version: 6 API
*/
+#include "gmt_common_byteswap.h"
#include "gmt_dev.h"
#define THIS_MODULE_CLASSIC_NAME "grd2xyz"