diff options
| author | chs <chs@NetBSD.org> | 2007-02-19 18:33:09 +0000 |
|---|---|---|
| committer | chs <chs@NetBSD.org> | 2007-02-19 18:33:09 +0000 |
| commit | d210472073132ecbccb9cda05a3d1359e4ecc3cb (patch) | |
| tree | 007d20fe47987cea379536f0f3ac303ea4fb0dd2 /common/lib/libc/string | |
| parent | dde5afca617de4f4fbd790bee222fb3779f0042d (diff) | |
don't do the weak symbol thing in kernel context.
Diffstat (limited to 'common/lib/libc/string')
| -rw-r--r-- | common/lib/libc/string/strsep.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/common/lib/libc/string/strsep.c b/common/lib/libc/string/strsep.c index ec197488249..3c7cdb5e9ed 100644 --- a/common/lib/libc/string/strsep.c +++ b/common/lib/libc/string/strsep.c @@ -1,4 +1,4 @@ -/* $NetBSD: strsep.c,v 1.1 2006/11/13 03:26:43 dyoung Exp $ */ +/* $NetBSD: strsep.c,v 1.2 2007/02/19 18:33:09 chs Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)strsep.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: strsep.c,v 1.1 2006/11/13 03:26:43 dyoung Exp $"); +__RCSID("$NetBSD: strsep.c,v 1.2 2007/02/19 18:33:09 chs Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -43,15 +43,16 @@ __RCSID("$NetBSD: strsep.c,v 1.1 2006/11/13 03:26:43 dyoung Exp $"); #include <assert.h> #include <string.h> -#else -#include <sys/param.h> -#include <lib/libkern/libkern.h> -#endif #ifdef __weak_alias __weak_alias(strsep,_strsep) #endif +#else +#include <sys/param.h> +#include <lib/libkern/libkern.h> +#endif /* !_KERNEL && !_STANDALONE */ + #if !HAVE_STRSEP /* * Get next token from string *stringp, where tokens are possibly-empty |
