usyscalls: generate weak symbols
With weak symbol we avoid conflicts with POSIX's libc.
This commit is contained in:
parent
810f149dbd
commit
d836972146
|
@ -185,6 +185,7 @@ func generateLibcCode(calls []SyscallConf){
|
||||||
#include <u.h>
|
#include <u.h>
|
||||||
|
|
||||||
{{ range .Wrappers }}
|
{{ range .Wrappers }}
|
||||||
|
#pragma weak {{ .Name }}
|
||||||
{{ .RetType }}
|
{{ .RetType }}
|
||||||
{{ .Name }}({{ .FuncArgs }})
|
{{ .Name }}({{ .FuncArgs }})
|
||||||
{
|
{
|
||||||
|
@ -288,4 +289,4 @@ func main() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue