summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2007-01-09 21:03:02 +0000
committertv <tv@pkgsrc.org>2007-01-09 21:03:02 +0000
commitb0125fd2a0f959f06a1e914f317642a60efad3b5 (patch)
tree02933601c550ca676ce6768404e1750bad51bb75
parent6780211470ff1368c86aa70999f18020d0d5eadc (diff)
downloadpkgsrc-b0125fd2a0f959f06a1e914f317642a60efad3b5.tar.gz
Define uint64_t to u_int64_t on Interix.
There actually is an autoconf test in ghostscript for a 64-bit int, used for GX_COLOR_INDEX_TYPE, but the fallback for that is "ulong", not necessarily 64 bits. So to make gdevpdfe.c happy for now, force the issue.
-rw-r--r--print/ghostscript/hacks.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/print/ghostscript/hacks.mk b/print/ghostscript/hacks.mk
new file mode 100644
index 00000000000..c789f930866
--- /dev/null
+++ b/print/ghostscript/hacks.mk
@@ -0,0 +1,11 @@
+# $NetBSD: hacks.mk,v 1.1 2007/01/09 21:03:02 tv Exp $
+
+### [Tue Jan 9 15:57:05 EST 2007 : tv]
+### Interix has u_int64_t, but not uint64_t
+### (gdevpdfe.c doesn't use the autoconf test based int64 type,
+### but absolutely requires a 64-bit unsigned int)
+###
+.if ${OPSYS} == "Interix"
+PKG_HACKS+= interix-uint64_t
+CPPFLAGS.Interix+= -Duint64_t=u_int64_t
+.endif