diff options
| author | Michael Forney <mforney@mforney.org> | 2016-04-18 19:01:14 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-04-23 16:51:19 -0700 |
| commit | 12aa2ae80ad26f7b4b9e43d93caa74fd0951334b (patch) | |
| tree | 11b5bae9c5d92f0c2a76437b48d6967e072a79a3 | |
| parent | 8e868961ca5133d00cbfb98c640533dcce1d0411 (diff) | |
openbsd: Build yacc
| -rw-r--r-- | core/openbsd/gen.rc | 7 | ||||
| -rw-r--r-- | core/openbsd/include/sys/cdefs.h | 2 |
2 files changed, 8 insertions, 1 deletions
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__)) |
