updating BSD_SOURCE patch

This commit is contained in:
Vincent Batts 2014-06-03 11:20:16 -04:00
parent f3f956d5ae
commit dbf2661391
2 changed files with 5 additions and 20 deletions

View File

@ -1,6 +1,8 @@
--- include/u.h.orig 2014-02-20 13:51:53.456000000 -0600
+++ include/u.h 2014-02-20 13:55:51.072000000 -0600
@@ -38,9 +38,12 @@
Index: include/u.h
===================================================================
--- include/u.h.orig
+++ include/u.h
@@ -38,9 +38,12 @@ extern "C" {
# define __MAKECONTEXT_V2_SOURCE 1
# endif
#endif
@ -14,18 +16,3 @@
#if !defined(__APPLE__) && !defined(__OpenBSD__)
# define _XOPEN_SOURCE 1000
# define _XOPEN_SOURCE_EXTENDED 1
--- src/lib9/utf/utfecpy.c.orig 2014-02-20 14:12:27.735000000 -0600
+++ src/lib9/utf/utfecpy.c 2014-02-20 14:13:09.242000000 -0600
@@ -11,7 +11,11 @@
* REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
* OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
*/
-#define _BSD_SOURCE 1
+#if defined __linux__ || defined __GNU__ || defined __GLIBC__
+#define _DEFAULT_SOURCE 1
+#else
+ #define _BSD_SOURCE 1
+#endif
#include <string.h>
#include "utf.h"
#include "utfdef.h"

View File

@ -1,4 +1,2 @@
d76dc07e475b2905b5fec1cf319b6356 golang-19087:a15f344a9efa-xattrs.tar
7917152cb24efb9a13c7881ed280af9a go1.2.2.src.tar.gz
14616a2258d1a4029a6fd10bbbd9b564 go1.3beta2.src.tar.gz
6f0523a73ff66bb52ae75b7f42fc8a1e go1.3rc1.src.tar.gz