summaryrefslogtreecommitdiff
path: root/geography
diff options
context:
space:
mode:
Diffstat (limited to 'geography')
-rw-r--r--geography/libdrg/distinfo3
-rw-r--r--geography/libdrg/patches/patch-drg__tiff.c49
2 files changed, 51 insertions, 1 deletions
diff --git a/geography/libdrg/distinfo b/geography/libdrg/distinfo
index 2f80d9a8f98..3d271fdcd10 100644
--- a/geography/libdrg/distinfo
+++ b/geography/libdrg/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2007/08/11 02:53:02 gdt Exp $
+$NetBSD: distinfo,v 1.2 2012/10/26 20:41:00 joerg Exp $
SHA1 (libdrg-0.0.81.tar.gz) = 48e45c91710adce23e6cf41a8c5d0368681db1a6
RMD160 (libdrg-0.0.81.tar.gz) = 2fb8b5fee6464ec47c2ada9f474304003edfee6c
Size (libdrg-0.0.81.tar.gz) = 320228 bytes
+SHA1 (patch-drg__tiff.c) = a8ea12efaef2b03c5754752f58c785fb049535b1
diff --git a/geography/libdrg/patches/patch-drg__tiff.c b/geography/libdrg/patches/patch-drg__tiff.c
new file mode 100644
index 00000000000..1aaefad641f
--- /dev/null
+++ b/geography/libdrg/patches/patch-drg__tiff.c
@@ -0,0 +1,49 @@
+$NetBSD: patch-drg__tiff.c,v 1.1 2012/10/26 20:41:00 joerg Exp $
+
+--- drg_tiff.c.orig 2012-10-26 15:50:54.000000000 +0000
++++ drg_tiff.c
+@@ -206,7 +206,7 @@ drgp_ensure_valid(drg_t *drgp)
+ * per northing per map, or about 1k times for a full-screen display.
+ */
+
+-inline int
++static inline int
+ drg_tiff_valid_northing(drg_t *drgp, double northing)
+ {
+ return( drgp &&
+@@ -222,7 +222,7 @@ drg_tiff_valid_northing(drg_t *drgp, dou
+ * case (1:25000, 1:100000), it's better to use the next smaller scale
+ * map than to subsample by 4.
+ */
+-inline int
++static inline int
+ drg_scale_valid(drg_t *drgp, double scale)
+ {
+ int ok;
+@@ -563,7 +563,7 @@ drg_tiff_start_line()
+ /*
+ * Open file, else return 0
+ */
+-inline int
++static inline int
+ drg_tiff_ensure_open(drg_t *drgp)
+ {
+ int32_t length;
+@@ -610,7 +610,7 @@ drg_tiff_ensure_open(drg_t *drgp)
+ /*
+ * Allocate strip buffer, else return 0;
+ */
+-inline int
++static inline int
+ drg_tiff_ensure_scanline_buf(drg_t *drgp)
+ {
+ if ( ! drg_tiff_ensure_open(drgp) ) return 0;
+@@ -626,7 +626,7 @@ drg_tiff_ensure_scanline_buf(drg_t *drgp
+ return 1;
+ }
+
+-inline int
++static inline int
+ drg_tiff_ensure_scanline_number(drg_t *drgp, int scanline)
+ {
+ int i;