Commit c6cbdbf9 authored by Aleksa Sarai's avatar Aleksa Sarai Committed by Tobias Klauser

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/155748Reviewed-by: 's avatarTobias Klauser <tobias.klauser@gmail.com>
parent 367055b3
// 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 (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment