shithub: riscv

Download patch

ref: 7b4e3be27e510fd93f46c8a10375c509f868df92
parent: aebf92224f1977cfac6fae779d5c288e16afcebd
author: Ori Bernstein <[email protected]>
date: Sun Oct 31 00:42:34 EDT 2021

ape: add missing idn2utf, utf2idn to lib9

this fixes the libsec build under ape.

--- a/sys/src/ape/lib/9/libc.h
+++ b/sys/src/ape/lib/9/libc.h
@@ -180,6 +180,9 @@
 extern	int	dec16chr(int);
 extern	int	enc16chr(int);
 
+extern	int	idn2utf(char *, char *, int);
+extern	int	utf2idn(char *, char *, int);
+
 extern int tokenize(char*, char**, int);
 extern int getfields(char*, char**, int, int, char*);
 extern int gettokens(char*, char**, int, char*);
--- a/sys/src/ape/lib/9/mkfile
+++ b/sys/src/ape/lib/9/mkfile
@@ -12,6 +12,7 @@
 	getcallerpc.$O\
 	getfcr.$O\
 	getfields.$O\
+	idn.$O\
 	mount.$O\
 	rendezvous.$O\
 	rfork.$O\
@@ -66,3 +67,6 @@
 
 u64.$O: ../../../libc/port/u64.c
 	$CC $CFLAGS -I. ../../../libc/port/u64.c
+
+idn.$O: ../../../libc/9sys/idn.c
+	$CC $CFLAGS -I. ../../../libc/9sys/idn.c