]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/cgo: fix building on musl
authorTonis Tiigi <tonistiigi@gmail.com>
Sun, 6 Dec 2020 20:13:47 +0000 (20:13 +0000)
committerIan Lance Taylor <iant@golang.org>
Mon, 7 Dec 2020 18:02:09 +0000 (18:02 +0000)
sys/unistd.h only exists in glibc and not in musl so use the standard
location. This is a regression from CL 210639

Change-Id: Idd4c75510d9829316b44300c36c34df6d667cc05
GitHub-Last-Rev: 0fa4162f1c7c460bda7585300285f47d1781985d
GitHub-Pull-Request: golang/go#43038
Reviewed-on: https://go-review.googlesource.com/c/go/+/275732
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Andrew G. Morgan <agm@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Filippo Valsorda <filippo@golang.org>

src/runtime/cgo/linux_syscall.c

index c8e91918a131c846e90d628ba8e152007a799c03..56f3d67d8bf670dbc3ca7a1867900d59aced2705 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <grp.h>
 #include <sys/types.h>
-#include <sys/unistd.h>
+#include <unistd.h>
 #include <errno.h>
 #include "libcgo.h"