ソースを参照

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>
Aleksa Sarai 7 年 前
コミット
c6cbdbf9e6
1 ファイル変更3 行追加3 行削除
  1. 3 3
      unix/mksysnum.go

+ 3 - 3
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 (