From 12aa2ae80ad26f7b4b9e43d93caa74fd0951334b Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 18 Apr 2016 19:01:14 -0700 Subject: openbsd: Build yacc --- core/openbsd/gen.rc | 7 ++++++- core/openbsd/include/sys/cdefs.h | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/core/openbsd/gen.rc b/core/openbsd/gen.rc index 50b75f96..722b36f9 100644 --- a/core/openbsd/gen.rc +++ b/core/openbsd/gen.rc @@ -8,8 +8,13 @@ lib libbsd.a\ lib/libc/stdlib/^(reallocarray strtonum)^.c\ lib/libc/string/strmode.c +# pax exe pax bin/pax/*.c libbsd.a - file bin/pax '$outdir'/pax 755 for(alias in tar cpio) sym bin/$alias pax for(man in pax tar cpio) file share/man/man1/$man.1 '$srcdir'/bin/pax/$man.1 644 + +# yacc +exe yacc usr.bin/yacc/*.c '$outdir'/libbsd.a +file bin/yacc '$outdir'/yacc 755 +file share/man/man1/yacc.1 '$srcdir'/usr.bin/yacc/yacc.1 644 diff --git a/core/openbsd/include/sys/cdefs.h b/core/openbsd/include/sys/cdefs.h index f1e05946..70258b8c 100644 --- a/core/openbsd/include/sys/cdefs.h +++ b/core/openbsd/include/sys/cdefs.h @@ -1,3 +1,5 @@ /* only needed for C++ */ #define __BEGIN_DECLS #define __END_DECLS + +#define __dead __attribute__((__noreturn__)) -- cgit v1.2.3