shithub: riscv

Download patch

ref: cb7375dcbcd80183fb206fa41b398dc71a039632
parent: 9eeca04d87ff362a524a4f7d06b68fbc7f6a256a
author: mischief <[email protected]>
date: Sat Dec 1 22:30:22 EST 2018

ape: declare gethostname

--- a/sys/include/ape/bsd.h
+++ b/sys/include/ape/bsd.h
@@ -46,6 +46,8 @@
 extern char	*sys_errlist[];
 extern int		sys_nerr;
 
+extern int	gethostname(char*, int);
+
 #ifdef __cplusplus
 }
 #endif