pkgsrc/graphics/GMT/patches/patch-ay
jtb 1acbced92d Fix byte ordering in grdraster. Proper location of HTML docs in the
GMT help script. Fix some patch fuzz. Install libgmt_mgg.la before
the programs depending on it, saving some warnings from libtool.
2001-04-20 17:16:19 +00:00

22 lines
721 B
Text

$NetBSD: patch-ay,v 1.5 2001/04/20 17:16:19 jtb Exp $
--- src/dbase/grdraster.c.orig Wed Apr 11 23:07:29 2001
+++ src/dbase/grdraster.c
@@ -41,7 +41,7 @@
BOOLEAN swap_me; /* TRUE if data set need to be swapped */
};
-#if WORDS_BIGENDIAN == 0
+#if BYTE_ORDER == LITTLE_ENDIAN
char my_endian = 'L'; /* This machine is Little endian */
#else
char my_endian = 'B'; /* This machine is Big endian */
@@ -601,7 +601,7 @@
struct RASTER_INFO *rasinfo;
if ((d = getenv ("GMT_GRIDDIR")) == CNULL) /* Look in default location */
- sprintf (dir, "%s%cshare%cdbase\0", GMTHOME, DIR_DELIM, DIR_DELIM);
+ sprintf (dir, "%s%cshare%cgmt%cdbase\0", GMTHOME, DIR_DELIM, DIR_DELIM, DIR_DELIM);
else
strcpy (dir, d);