2014-08-13 20:37:18 +00:00
|
|
|
Index: go/include/u.h
|
2014-06-03 15:20:16 +00:00
|
|
|
===================================================================
|
2014-08-13 20:37:18 +00:00
|
|
|
--- go.orig/include/u.h
|
|
|
|
+++ go/include/u.h
|
|
|
|
@@ -38,10 +38,13 @@ extern "C" {
|
2014-02-20 18:16:11 +00:00
|
|
|
# define __MAKECONTEXT_V2_SOURCE 1
|
|
|
|
# endif
|
|
|
|
#endif
|
2014-02-20 20:39:08 +00:00
|
|
|
+#if defined __linux__ || defined __GNU__ || defined __GLIBC__
|
|
|
|
+#define _DEFAULT_SOURCE 1
|
|
|
|
+#else
|
|
|
|
#define _BSD_SOURCE 1
|
2014-08-13 20:37:18 +00:00
|
|
|
#define _NETBSD_SOURCE 1 /* NetBSD */
|
|
|
|
-#define _DEFAULT_SOURCE 1 /* glibc > 2.19 */
|
2014-02-20 20:39:08 +00:00
|
|
|
#define _SVID_SOURCE 1
|
|
|
|
+#endif
|
2014-02-20 18:16:11 +00:00
|
|
|
#if !defined(__APPLE__) && !defined(__OpenBSD__)
|
|
|
|
# define _XOPEN_SOURCE 1000
|
|
|
|
# define _XOPEN_SOURCE_EXTENDED 1
|