diff options
author | 1998-09-07 03:23:55 +0000 | |
---|---|---|
committer | 1998-09-07 03:23:55 +0000 | |
commit | 990b807493bc98eed74c5d4509a9a76bf9caa48a (patch) | |
tree | 5f163a4b9949ce9698988025c87732718273a0b6 | |
parent | support for pipes (diff) | |
download | wireguard-openbsd-990b807493bc98eed74c5d4509a9a76bf9caa48a.tar.xz wireguard-openbsd-990b807493bc98eed74c5d4509a9a76bf9caa48a.zip |
make work on pmax
-rw-r--r-- | lib/libc/gen/nlist.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/gen/nlist.c b/lib/libc/gen/nlist.c index 86ae940c45d..a44f82af6c8 100644 --- a/lib/libc/gen/nlist.c +++ b/lib/libc/gen/nlist.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: nlist.c,v 1.28 1998/09/05 16:30:07 millert Exp $"; +static char rcsid[] = "$OpenBSD: nlist.c,v 1.29 1998/09/07 03:23:55 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -205,7 +205,11 @@ __ecoff_fdnlist(fd, list) /* Read in the string table. */ if (Seek(fd, symhdr.cbSsExtOffset, SEEK_SET) == -1) BAD; +#ifdef alpha strsize = symhdr.estrMax; +#else + strsize = symhdr.sh_estrmax; +#endif if (!(strtab = (char *)malloc(strsize))) BAD; if (Read(fd, strtab, strsize) != strsize) |