From 299862db8fc2ca6376d2c9c58ea0d57702d467e0 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Sat, 7 Feb 2015 18:46:40 -0500 Subject: [PATCH] include/u.h: fix name clash of REG_R* on solaris MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes build for solaris. Change-Id: Ic6ffab36df9bd68fc38b258f1484a29fa2a0cd39 Reviewed-on: https://go-review.googlesource.com/4180 Reviewed-by: Aram Hăvărneanu --- include/u.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/u.h b/include/u.h index f77aa9d897..6f857820de 100644 --- a/include/u.h +++ b/include/u.h @@ -42,7 +42,7 @@ extern "C" { #define _NETBSD_SOURCE 1 /* NetBSD */ #define _DEFAULT_SOURCE 1 /* glibc > 2.19 */ #define _SVID_SOURCE 1 -#if !defined(__APPLE__) && !defined(__OpenBSD__) +#if !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(__sun__) # define _XOPEN_SOURCE 1000 # define _XOPEN_SOURCE_EXTENDED 1 #endif