Content-Length: 213004 | pFad | http://github.com/golang/go/commit/b48cd4b9dcb6cefb8dcff6ee571234620a879b68

9D [release-branch.go1.3] include/u.h: define _DEFAULT_SOURCE for new glibc · golang/go@b48cd4b · GitHub
Skip to content

Commit

Permalink
[release-branch.go1.3] include/u.h: define _DEFAULT_SOURCE for new glibc
Browse files Browse the repository at this point in the history
««« CL 112530043 / c8059ac4e0ec
include/u.h: define _DEFAULT_SOURCE for new glibc

glibc devs have apparently decided _BSD_SOURCE will be
deprecated on Linux, and issue a preprocessor warning if
declaring _BSD_SOURCE without _DEFAULT_SOURCE.

https://sourceware.org/glibc/wiki/Release/2.20

Fixes #8397.

LGTM=iant
R=dave, gobot, iant
CC=golang-codereviews
https://golang.org/cl/112530043

»»»

TBR=rsc
CC=golang-codereviews
https://golang.org/cl/124150043
  • Loading branch information
adg authored and ianlancetaylor committed Aug 11, 2014
1 parent 1798bb2 commit b48cd4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/u.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ extern "C" {
#endif
#define _BSD_SOURCE 1
#define _NETBSD_SOURCE 1 /* NetBSD */
#define _DEFAULT_SOURCE 1 /* glibc > 2.19 */
#define _SVID_SOURCE 1
#if !defined(__APPLE__) && !defined(__OpenBSD__)
# define _XOPEN_SOURCE 1000
Expand Down

0 comments on commit b48cd4b

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/golang/go/commit/b48cd4b9dcb6cefb8dcff6ee571234620a879b68

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy