]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/opencl/0001-include-unistd-for-gete-ug-id.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / opencl / 0001-include-unistd-for-gete-ug-id.patch
CommitLineData
1e59de90
TL
1From 0f783f1a8eac7a78bc92198e140d4a5c745382ca Mon Sep 17 00:00:00 2001
2From: Nicole Mazzuca <mazzucan@outlook.com>
3Date: Wed, 23 Sep 2020 11:50:21 -0700
4Subject: [PATCH] include unistd for gete?[ug]id
5
6---
7 loader/linux/icd_linux_envvars.c | 4 ++++
8 1 file changed, 4 insertions(+)
9
10diff --git a/loader/linux/icd_linux_envvars.c b/loader/linux/icd_linux_envvars.c
11index 4af5a08..92b0698 100644
12--- a/loader/linux/icd_linux_envvars.c
13+++ b/loader/linux/icd_linux_envvars.c
14@@ -25,6 +25,10 @@
15
16 #include <stdlib.h>
17
18+#if defined(__APPLE__)
19+#include <unistd.h>
20+#endif
21+
22 char *khrIcd_getenv(const char *name) {
23 // No allocation of memory necessary for Linux.
24 return getenv(name);
25--
262.24.3 (Apple Git-128)
27