mirror of
https://github.com/golang/sys.git
synced 2026-02-08 11:46:04 +03:00
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>
This commit is contained in:
committed by
Tobias Klauser
parent
367055b3f9
commit
c6cbdbf9e6
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user