diff options
| author | thorpej <thorpej@NetBSD.org> | 2021-01-23 19:41:16 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2021-01-23 19:41:16 +0000 |
| commit | 2d8552eb3efa6d9b4933a75c4add55a995dac54a (patch) | |
| tree | 2eb08ed529c692cc482682ff89c8439a928c5ccb /sys/lib | |
| parent | bb61e95eff396a3d3ea48d0b7015bad0e365bdad (diff) | |
Fix building in the _STANDALONE case.
Diffstat (limited to 'sys/lib')
| -rw-r--r-- | sys/lib/libkern/strlist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/lib/libkern/strlist.c b/sys/lib/libkern/strlist.c index 0cbfd65847d..3cf4ba43548 100644 --- a/sys/lib/libkern/strlist.c +++ b/sys/lib/libkern/strlist.c @@ -1,4 +1,4 @@ -/* $NetBSD: strlist.c,v 1.1 2021/01/21 15:43:37 thorpej Exp $ */ +/* $NetBSD: strlist.c,v 1.2 2021/01/23 19:41:16 thorpej Exp $ */ /*- * Copyright (c) 2021 The NetBSD Foundation, Inc. @@ -65,12 +65,13 @@ strlist_free(void * const v, size_t const size) kmem_free(v, size); } #elif defined(_STANDALONE) +#include <lib/libkern/libkern.h> #include <lib/libsa/stand.h> static void * strlist_alloc(size_t const size) { - cp = alloc(size); + char *cp = alloc(size); if (cp != NULL) { memset(cp, 0, size); } |
