diff options
author | 2014-12-27 16:04:22 +0000 | |
---|---|---|
committer | 2014-12-27 16:04:22 +0000 | |
commit | 145cd0a02a72938762d8a05df32574cedaae6163 (patch) | |
tree | 7f457b31b2abbe2120a056635c11931fa3d59123 | |
parent | Link -static -pie executables with rcrt0.o instead of crt0.o such that they (diff) | |
download | wireguard-openbsd-145cd0a02a72938762d8a05df32574cedaae6163.tar.xz wireguard-openbsd-145cd0a02a72938762d8a05df32574cedaae6163.zip |
Only include "boot.h" if MD_RCRT0_START is defined. Should fix build on vax.
ok miod@
-rw-r--r-- | lib/csu/crt0.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/csu/crt0.c b/lib/csu/crt0.c index 965eba66e97..f130e57af6a 100644 --- a/lib/csu/crt0.c +++ b/lib/csu/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.3 2014/12/22 03:51:08 kurt Exp $ */ +/* $OpenBSD: crt0.c,v 1.4 2014/12/27 16:04:22 kettenis Exp $ */ /* * Copyright (c) 1995 Christopher G. Demetriou @@ -35,7 +35,9 @@ #include <limits.h> #include "md_init.h" +#ifdef MD_RCRT0_START #include "boot.h" +#endif /* some defaults */ #ifndef MD_START_ARGS |