diff options
author | 1996-03-25 22:11:05 +0000 | |
---|---|---|
committer | 1996-03-25 22:11:05 +0000 | |
commit | d15df0ef64789057e4a67cc317bba9310da86766 (patch) | |
tree | 9a8c1aa77d0aa5a5f788bcad5cf113131cd9076c /lib/libc | |
parent | Pull in prototypes (diff) | |
download | wireguard-openbsd-d15df0ef64789057e4a67cc317bba9310da86766.tar.xz wireguard-openbsd-d15df0ef64789057e4a67cc317bba9310da86766.zip |
Protect internal mcount symbol from lint(1)
Use __asm, not asm
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gmon/gmon.c | 2 | ||||
-rw-r--r-- | lib/libc/gmon/mcount.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c index 0ad73fa546f..45b14fd5497 100644 --- a/lib/libc/gmon/gmon.c +++ b/lib/libc/gmon/gmon.c @@ -52,7 +52,7 @@ static char rcsid[] = "$NetBSD: gmon.c,v 1.5 1995/11/21 22:23:47 jtc Exp $"; #include <limits.h> #include <unistd.h> -extern char *minbrk asm ("minbrk"); +extern char *minbrk __asm ("minbrk"); struct gmonparam _gmonparam = { GMON_PROF_OFF }; diff --git a/lib/libc/gmon/mcount.c b/lib/libc/gmon/mcount.c index 6ec117b3f14..fb8f1ac3f2b 100644 --- a/lib/libc/gmon/mcount.c +++ b/lib/libc/gmon/mcount.c @@ -177,8 +177,10 @@ overflow: return; } +#ifndef lint /* * Actual definition of mcount function. Defined in <machine/profile.h>, * which is included by <sys/gmon.h>. */ MCOUNT +#endif |