summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2019-09-26 01:18:30 +0000
committerwiz <wiz@pkgsrc.org>2019-09-26 01:18:30 +0000
commitdac386c7e3d8b24150d4118ce09bdb9e43b17db3 (patch)
treea4aa75c44f846490d44e123bd9d19fc3c7fdacd4 /textproc
parentf70a3ce152924c7ac9dadc32f604158d597edb22 (diff)
downloadpkgsrc-dac386c7e3d8b24150d4118ce09bdb9e43b17db3.tar.gz
R-readstata13: fix build on non-Linux non-mac.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/R-readstata13/distinfo3
-rw-r--r--textproc/R-readstata13/patches/patch-inst_include_readstata.h17
2 files changed, 19 insertions, 1 deletions
diff --git a/textproc/R-readstata13/distinfo b/textproc/R-readstata13/distinfo
index 414c40df364..2e33e66641b 100644
--- a/textproc/R-readstata13/distinfo
+++ b/textproc/R-readstata13/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2019/07/31 13:53:41 brook Exp $
+$NetBSD: distinfo,v 1.2 2019/09/26 01:18:30 wiz Exp $
SHA1 (R/readstata13_0.9.2.tar.gz) = f87e7e136d0707d4720b00acd2a81c0e071ff65a
RMD160 (R/readstata13_0.9.2.tar.gz) = 15d371f1c7170cf1aa1df2f8f1f31dec8707d11b
SHA512 (R/readstata13_0.9.2.tar.gz) = c2e9ba9fa013f9976ef2d3e6d3e4fe8429fc4b8dd0ad420061bf5738de2dbfc2cfb039f7a55f8d978c51ca17ae9d9dd473cb6d77947057966f40c3ca48a86ca6
Size (R/readstata13_0.9.2.tar.gz) = 61394 bytes
+SHA1 (patch-inst_include_readstata.h) = 6bbec9e0cbc87ac344143abf502d11d90edf4b69
diff --git a/textproc/R-readstata13/patches/patch-inst_include_readstata.h b/textproc/R-readstata13/patches/patch-inst_include_readstata.h
new file mode 100644
index 00000000000..64f092bee8d
--- /dev/null
+++ b/textproc/R-readstata13/patches/patch-inst_include_readstata.h
@@ -0,0 +1,17 @@
+$NetBSD: patch-inst_include_readstata.h,v 1.1 2019/09/26 01:18:30 wiz Exp $
+
+fseeko64 only exists on Linux.
+off64_t is not used in the code.
+
+--- inst/include/readstata.h.orig 2018-05-26 07:44:32.000000000 +0000
++++ inst/include/readstata.h
+@@ -40,8 +40,7 @@ typedef unsigned int uint32_t;
+ #include <stdint.h>
+ #endif
+
+-#ifdef __APPLE__
+-# define off64_t off_t
++#if !defined(__Linux__)
+ # define fseeko64 fseeko
+ #endif
+