diff --git a/stand/libsa/Makefile b/stand/libsa/Makefile index fbe27d40ee39..afe702fbc289 100644 --- a/stand/libsa/Makefile +++ b/stand/libsa/Makefile @@ -37,6 +37,11 @@ SRCS+= bcmp.c bcopy.c bzero.c ffs.c fls.c \ qdivrem.c strcat.c strchr.c strcmp.c strcpy.c stpcpy.c stpncpy.c \ strcspn.c strlcat.c strlcpy.c strlen.c strncat.c strncmp.c strncpy.c \ strnlen.c strpbrk.c strrchr.c strsep.c strspn.c strstr.c strtok.c swab.c + +# stdlib functions from libc +.PATH: ${LIBC_SRC}/stdlib +SRCS+= abs.c + .if ${MACHINE_CPUARCH} == "arm" .PATH: ${LIBC_SRC}/arm/gen diff --git a/stand/libsa/stand.h b/stand/libsa/stand.h index d1b84625cc56..e66791347ca4 100644 --- a/stand/libsa/stand.h +++ b/stand/libsa/stand.h @@ -347,6 +347,7 @@ extern ev_sethook_t env_noset; /* refuse set operation */ extern ev_unsethook_t env_nounset; /* refuse unset operation */ /* stdlib.h routines */ +extern int abs(int a); extern void abort(void); /* BCD conversions (undocumented) */