unix: mksysnum: correct +build restriction
Previously the +build line was taken as a package comment, due to how Go
handles cases like the following:
// +build <foo>
package foo
And thus caused build failures because of package name conflict issues.
Fixes: https://golang.org/cl/152677
Change-Id: I7360ee100a739b00beaa1337b0408bb06fa240a6
GitHub-Last-Rev: b67a58691f3a5be12f2c5c510fbb4bd95fdd6e05
GitHub-Pull-Request: golang/sys#28
Reviewed-on: https://go-review.googlesource.com/c/155748
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
diff --git a/unix/mksysnum.go b/unix/mksysnum.go
index a86c1e5..45b6e75 100644
--- a/unix/mksysnum.go
+++ b/unix/mksysnum.go
@@ -1,13 +1,13 @@
// Copyright 2018 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.
-//
+
+// +build ignore
+
// Generate system call table for DragonFly, NetBSD,
// FreeBSD, OpenBSD or Darwin from master list
// (for example, /usr/src/sys/kern/syscalls.master or
// sys/syscall.h).
-
-// +build ignore
package main
import (