From: Russ Cox Date: Fri, 17 Feb 2012 03:04:13 +0000 (-0500) Subject: log/syslog: disable on Windows X-Git-Tag: weekly.2012-02-22~170 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a4d124d75b1d0610a591ede8b24110b08764feac;p=gostls13.git log/syslog: disable on Windows We want to be able to implement good Windows support after Go 1. Right now Windows tries to use Unix domain sockets, and I'd rather just have it not be available. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5671076 --- diff --git a/src/pkg/log/syslog/syslog.go b/src/pkg/log/syslog/syslog.go index 3eb5353e9a..f53310cb0a 100644 --- a/src/pkg/log/syslog/syslog.go +++ b/src/pkg/log/syslog/syslog.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build !windows,!plan9 + // Package syslog provides a simple interface to the system log service. It // can send messages to the syslog daemon using UNIX domain sockets, UDP, or // TCP connections. diff --git a/src/pkg/log/syslog/syslog_test.go b/src/pkg/log/syslog/syslog_test.go index 7f509b3666..0fd6239059 100644 --- a/src/pkg/log/syslog/syslog_test.go +++ b/src/pkg/log/syslog/syslog_test.go @@ -1,6 +1,9 @@ // Copyright 2009 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 !windows,!plan9 + package syslog import ( diff --git a/src/pkg/log/syslog/syslog_unix.go b/src/pkg/log/syslog/syslog_unix.go index b1c929ad2f..46a164dd57 100644 --- a/src/pkg/log/syslog/syslog_unix.go +++ b/src/pkg/log/syslog/syslog_unix.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build !windows,!plan9 + package syslog import (