mirror of
https://github.com/opnsense/src.git
synced 2026-05-19 08:25:22 -04:00
parent
f2f2f23ad7
commit
2b5ccf507a
2 changed files with 7 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ SRCS+= rtld_libc.c
|
|||
|
||||
# Now build the remaining files from libc:
|
||||
.PATH: ${LIBC_SRCTOP}/stdlib
|
||||
SRCS+= reallocf.c realpath.c getenv.c merge.c reallocarray.c
|
||||
SRCS+= reallocf.c realpath.c merge.c reallocarray.c
|
||||
# TODO: fix merge.c to build with WARNS=6
|
||||
.if ${COMPILER_TYPE} == "clang"
|
||||
CFLAGS.merge.c+=-Wno-error=null-pointer-arithmetic
|
||||
|
|
|
|||
|
|
@ -6027,6 +6027,12 @@ rtld_strerror(int errnum)
|
|||
return (sys_errlist[errnum]);
|
||||
}
|
||||
|
||||
char *
|
||||
getenv(const char *name)
|
||||
{
|
||||
return (rtld_get_env_val(environ, name, strlen(name)));
|
||||
}
|
||||
|
||||
/* malloc */
|
||||
void *
|
||||
malloc(size_t nbytes)
|
||||
|
|
|
|||
Loading…
Reference in a new issue