summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorschwarz <schwarz@pkgsrc.org>2006-04-14 21:13:10 +0000
committerschwarz <schwarz@pkgsrc.org>2006-04-14 21:13:10 +0000
commitf6e26041a59216fbf3d2014f23fb716896cd71e6 (patch)
tree07dc682f47aea7ac170077c3b023252ea271e742 /converters
parenteeec12647c47c6c6374e966d5d7dac5cd33e5638 (diff)
downloadpkgsrc-f6e26041a59216fbf3d2014f23fb716896cd71e6.tar.gz
added a hack to work around the conflict of sys/types.h and inttypes.h on
IRIX 5.3.
Diffstat (limited to 'converters')
-rw-r--r--converters/libiconv/hacks.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/converters/libiconv/hacks.mk b/converters/libiconv/hacks.mk
new file mode 100644
index 00000000000..f159dfdbd5b
--- /dev/null
+++ b/converters/libiconv/hacks.mk
@@ -0,0 +1,17 @@
+# $NetBSD: hacks.mk,v 1.1 2006/04/14 21:13:10 schwarz Exp $
+
+.if !defined(LIBEXIF_HACKS_MK)
+LIBEXIF_HACKS_MK= # defined
+
+### [Fri Dec 30 21:00:59 CET 2005 : schwarz]
+### make sys/types.h not conflict with inttypes.h
+### (issue is specific to IRIX 5.3)
+###
+.if ${LOWER_OPSYS} == "irix5.3"
+PKG_HACKS+= sys_types_h-inttypes_h-conflict
+post-wrapper:
+ ${MKDIR} ${BUILDLINK_DIR}/include/sys && ${GREP} -v '^typedef.*[^u_]int[12368]*_t;' /usr/include/sys/types.h > ${BUILDLINK_DIR}/include/sys/types.h
+# should match int8_t, int16_t, and int32_t (only)
+.endif
+
+.endif