]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/mcpp/0001-fix-_POSIX_C_SOURCE.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / mcpp / 0001-fix-_POSIX_C_SOURCE.patch
1 From d2625f80e08ff811a173ca3dbe76a0e004c26c65 Mon Sep 17 00:00:00 2001
2 From: Nicole Mazzuca <mazzucan@outlook.com>
3 Date: Tue, 22 Sep 2020 16:21:43 -0700
4 Subject: [PATCH] fix _POSIX_C_SOURCE
5
6 set it to correctly ask for 200112L, for readlink
7 ---
8 configed.H | 8 +-------
9 1 file changed, 1 insertion(+), 7 deletions(-)
10
11 diff --git a/configed.H b/configed.H
12 index 2e01c15..250f441 100644
13 --- a/configed.H
14 +++ b/configed.H
15 @@ -189,19 +189,13 @@
16 #define _POSIX_ 1
17 #define _POSIX_SOURCE 1
18 #ifndef _POSIX_C_SOURCE
19 -#define _POSIX_C_SOURCE 1
20 +#define _POSIX_C_SOURCE 200112L
21 #define _POSIX_C_SOURCE_defined 1
22 #endif
23 #include "limits.h"
24 #ifdef _AIX
25 #include "sys/stat.h"
26 #endif
27 -#undef _POSIX_
28 -#undef _POSIX_SOURCE
29 -#ifdef _POSIX_C_SOURCE_defined
30 -#undef _POSIX_C_SOURCE
31 -#undef _POSIX_C_SOURCE_defined
32 -#endif
33 #define CHARBIT CHAR_BIT
34 #define UCHARMAX UCHAR_MAX
35 #define USHRTMAX USHRT_MAX
36 --
37 2.24.3 (Apple Git-128)
38