]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | From 0f783f1a8eac7a78bc92198e140d4a5c745382ca Mon Sep 17 00:00:00 2001 |
2 | From: Nicole Mazzuca <mazzucan@outlook.com> | |
3 | Date: Wed, 23 Sep 2020 11:50:21 -0700 | |
4 | Subject: [PATCH] include unistd for gete?[ug]id | |
5 | ||
6 | --- | |
7 | loader/linux/icd_linux_envvars.c | 4 ++++ | |
8 | 1 file changed, 4 insertions(+) | |
9 | ||
10 | diff --git a/loader/linux/icd_linux_envvars.c b/loader/linux/icd_linux_envvars.c | |
11 | index 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 | -- | |
26 | 2.24.3 (Apple Git-128) | |
27 |