aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Cooijmans <timcooijmans@gmail.com>2015-08-20 09:50:10 +0200
committerHyang-Ah Hana Kim <hyangah@gmail.com>2015-08-27 15:14:41 +0000
commit34db31d5f5c64f8d232dc0f279ae7e7f621c2ad7 (patch)
treef2c989ebac89431e08d1c9abce469a477a2e323a /src
parent7437e3f02e839d82d1818980376bdeea9c75c535 (diff)
downloadgo-34db31d5f5c64f8d232dc0f279ae7e7f621c2ad7.tar.xz
src/runtime: Add missing defs for android/386.
Change-Id: I63bf6d2fdf41b49ff8783052d5d6c53b20e2f050 Reviewed-on: https://go-review.googlesource.com/13760 Reviewed-by: David Crawshaw <crawshaw@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/runtime/defs_linux_386.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/defs_linux_386.go b/src/runtime/defs_linux_386.go
index 7cf57c8452..44d2fd1d48 100644
--- a/src/runtime/defs_linux_386.go
+++ b/src/runtime/defs_linux_386.go
@@ -90,6 +90,10 @@ const (
_EPOLL_CTL_ADD = 0x1
_EPOLL_CTL_DEL = 0x2
_EPOLL_CTL_MOD = 0x3
+
+ _AF_UNIX = 0x1
+ _F_SETFL = 0x4
+ _SOCK_DGRAM = 0x2
)
type fpreg struct {
@@ -218,3 +222,8 @@ type epollevent struct {
events uint32
data [8]byte // to match amd64
}
+
+type sockaddr_un struct {
+ family uint16
+ path [108]byte
+}