usyscalls: generate weak symbols

With weak symbol we avoid conflicts with POSIX's libc.
This commit is contained in:
Giacomo Tesio 2017-04-29 00:25:31 +02:00
parent 810f149dbd
commit d836972146
1 changed files with 2 additions and 1 deletions

View File

@ -185,6 +185,7 @@ func generateLibcCode(calls []SyscallConf){
#include <u.h>
{{ range .Wrappers }}
#pragma weak {{ .Name }}
{{ .RetType }}
{{ .Name }}({{ .FuncArgs }})
{
@ -288,4 +289,4 @@ func main() {
}
}