blob: eaaee5a058111dd59594c8bcfb0bd3e71ede8d6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
$NetBSD: patch-common_uposixdefs.h,v 1.3 2017/04/22 20:11:45 adam Exp $
--- common/uposixdefs.h.orig 2017-03-09 02:12:45.000000000 +0000
+++ common/uposixdefs.h
@@ -44,8 +44,10 @@
* and define _XOPEN_SOURCE to different values depending on __STDC_VERSION__.
* In C++ source code (e.g., putil.cpp), __STDC_VERSION__ is not defined at all.
*/
+#if !defined(_SCO_DS)
# define _XOPEN_SOURCE 600
#endif
+#endif
/*
* Make sure things like readlink and such functions work.
@@ -54,9 +56,11 @@
*
* z/OS needs this definition for timeval and to get usleep.
*/
+#if !defined(__sun) && !defined(_SCO_DS)
#if !defined(_XOPEN_SOURCE_EXTENDED) && defined(__TOS_MVS__)
# define _XOPEN_SOURCE_EXTENDED 1
#endif
+#endif
/**
* Solaris says:
@@ -68,4 +72,7 @@
# define _STDC_C99
#endif
+#if defined(__cplusplus) && defined(__NetBSD__)
+#define _ISOC99_SOURCE
+#endif
#endif /* __UPOSIXDEFS_H__ */
|