summaryrefslogtreecommitdiff
path: root/news/nntpcache/patches/patch-scripts_genextern.sh
diff options
context:
space:
mode:
Diffstat (limited to 'news/nntpcache/patches/patch-scripts_genextern.sh')
-rw-r--r--news/nntpcache/patches/patch-scripts_genextern.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/news/nntpcache/patches/patch-scripts_genextern.sh b/news/nntpcache/patches/patch-scripts_genextern.sh
new file mode 100644
index 00000000000..fab9cdfa613
--- /dev/null
+++ b/news/nntpcache/patches/patch-scripts_genextern.sh
@@ -0,0 +1,21 @@
+$NetBSD: patch-scripts_genextern.sh,v 1.1 2017/12/27 16:53:43 he Exp $
+
+Don't create syntax error.
+
+--- scripts/genextern.sh.orig 2004-04-11 11:43:50.000000000 +0000
++++ scripts/genextern.sh
+@@ -8,6 +8,7 @@ shift
+ $CPP -DAUTOGEN -DEXPORT=GENEXTERN $* $input | egrep 'GENEXTERN *') |\
+ sed -e '{
+ s/GENEXTERN /extern /
++s/($/()/
+ s/=.*$//
+ s/;.*$//
+ s/$/;/
+@@ -43,4 +44,4 @@ END
+ }
+ #endif
+ END2
+-)
+\ No newline at end of file
++)