diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-01-05 09:02:04 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-01-05 09:02:04 +0000 |
commit | 045d873e22052b1951e71ebf599d27ac34607e3f (patch) | |
tree | 4f50823f2b5d1156845c3e1a95a1acbd25fd3f69 /lib/csu/common.h | |
parent | 71c77f6d81939a0f287254ac7340ef74481bd47c (diff) |
Do not have non-dynamic crt0 depend upon libc's strrchr() function on a.out.
Diffstat (limited to 'lib/csu/common.h')
-rw-r--r-- | lib/csu/common.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/csu/common.h b/lib/csu/common.h index 23d51f377a7..b2b4a3424ab 100644 --- a/lib/csu/common.h +++ b/lib/csu/common.h @@ -1,4 +1,4 @@ -/* $OpenBSD: common.h,v 1.7 2003/02/28 18:05:48 deraadt Exp $ */ +/* $OpenBSD: common.h,v 1.8 2004/01/05 09:02:03 miod Exp $ */ /* $NetBSD: common.h,v 1.3 1995/06/15 21:41:48 pk Exp $ */ /* @@ -55,7 +55,6 @@ extern struct _dynamic _DYNAMIC; static void __load_rtld(struct _dynamic *); extern int __syscall(int, ...); int _callmain(void); -static char *_strrchr(char *, char); #ifdef DEBUG static char *_getenv(char *); static int _strncmp(char *, char *, int); @@ -83,6 +82,7 @@ static int _strncmp(char *, char *, int); #endif /* DYNAMIC */ +static char *_strrchr(char *, char); extern int main(int, char **, char **); #ifdef MCRT0 extern void monstartup(u_long, u_long); @@ -94,10 +94,6 @@ int errno; static char empty[1]; char *__progname = empty; char __progname_storage[NAME_MAX+1]; -#ifndef DYNAMIC -#define _strrchr strrchr -#endif extern unsigned char etext; extern unsigned char eprol asm ("eprol"); - |