]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix build with CGO_ENABLED=0
authorDmitriy Vyukov <dvyukov@google.com>
Fri, 15 Mar 2013 18:23:35 +0000 (22:23 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Fri, 15 Mar 2013 18:23:35 +0000 (22:23 +0400)
R=golang-dev, rsc, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/7857044

src/pkg/net/empty.c [new file with mode: 0644]

diff --git a/src/pkg/net/empty.c b/src/pkg/net/empty.c
new file mode 100644 (file)
index 0000000..a515c2f
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2013 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file is required to prevent compiler errors
+// when the package built with CGO_ENABLED=0.
+// Otherwise the compiler says:
+// pkg/net/fd_poll_runtime.go:15: missing function body