summaryrefslogtreecommitdiff
path: root/src/net/empty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/empty.c')
-rw-r--r--src/net/empty.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/empty.c b/src/net/empty.c
new file mode 100644
index 000000000..a515c2fe2
--- /dev/null
+++ b/src/net/empty.c
@@ -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