diff options
author | 2017-01-21 04:14:19 +0000 | |
---|---|---|
committer | 2017-01-21 04:14:19 +0000 | |
commit | 1640b8d3f7d57d7e1c97128905d228033f835f00 (patch) | |
tree | c90642ed7db2dea0d41c1bd441c0a3697d1af281 | |
parent | Split out the Allwinner H3 specific clock code into its own functions and (diff) | |
download | wireguard-openbsd-1640b8d3f7d57d7e1c97128905d228033f835f00.tar.xz wireguard-openbsd-1640b8d3f7d57d7e1c97128905d228033f835f00.zip |
Pull in declarations for main() and __init() to make clang happy.
Mark __init() as hidden
ok kettenis@ deraadt@
-rw-r--r-- | lib/csu/crt0.c | 3 | ||||
-rw-r--r-- | lib/csu/extern.h | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/csu/crt0.c b/lib/csu/crt0.c index 3f65c673baa..0e8c7a5f5ee 100644 --- a/lib/csu/crt0.c +++ b/lib/csu/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.9 2017/01/19 23:47:04 guenther Exp $ */ +/* $OpenBSD: crt0.c,v 1.10 2017/01/21 04:14:19 guenther Exp $ */ /* * Copyright (c) 1995 Christopher G. Demetriou @@ -38,6 +38,7 @@ #ifdef MD_RCRT0_START #include "boot.h" #endif +#include "extern.h" /* some defaults */ #ifndef MD_START_ARGS diff --git a/lib/csu/extern.h b/lib/csu/extern.h index 775438fde0c..d2087e0fa4e 100644 --- a/lib/csu/extern.h +++ b/lib/csu/extern.h @@ -13,12 +13,9 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -struct ps_strings; -extern void ___start(int argc, char **argv, char **envp, void (*cleanup)(void), - const void *obj, struct ps_strings *ps_strings); -extern void __init(void); -extern int main(int argc, char *argv[], char *envp[]); +void __init(void) __dso_hidden; +int main(int argc, char *argv[], char *envp[]); typedef void (*init_f)(void); |