summaryrefslogtreecommitdiff
path: root/security/cfs/files
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-06-09 04:32:13 +0000
committerjlam <jlam@pkgsrc.org>2001-06-09 04:32:13 +0000
commit76c9a0c91a3362418f74eafb09676f2f4415476c (patch)
tree1d1fcbd0f6f432632deee2758f5d8a041979fb2d /security/cfs/files
parent5841d452727c7efb40f30a43381f7fc14e30c388 (diff)
downloadpkgsrc-76c9a0c91a3362418f74eafb09676f2f4415476c.tar.gz
Add patches from Simon Burge <simonb@wasabisystems.com> to build cfs
without needing -traditional. This fixes socklen_t lossage mentioned in the README.netbsd file. This was tested on i386 NetBSD-1.5 and -current.
Diffstat (limited to 'security/cfs/files')
-rw-r--r--security/cfs/files/unansi.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/security/cfs/files/unansi.sh b/security/cfs/files/unansi.sh
new file mode 100644
index 00000000000..58a83b555b0
--- /dev/null
+++ b/security/cfs/files/unansi.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# We need to disable ANSI prototypes for the rpcgen'd functions because of
+# the way the build script redefines some functions in terms of other
+# functions which have different prototypes.
+
+case $1 in
+NetBSD)
+ set -e
+ @AWK@ '
+ /__STDC__/ { last = NR - 1 }
+ { lines[linec++] = $0 }
+ END {
+ gsub("__STDC__", "__STDC__XXX", lines[last]);
+ for (i = 0; i < linec; i++)
+ print lines[i]
+ }' < $2 > $2.tmp
+ @MV@ -f $2.tmp $2
+ ;;
+*)
+ ;;
+esac