From c6cbdbf9e68a68b19802a5c44e537c284b9c8e1a Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Fri, 28 Dec 2018 12:01:59 +0000 Subject: [PATCH] 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 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 --- unix/mksysnum.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unix/mksysnum.go b/unix/mksysnum.go index a86c1e50..45b6e756 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 (