biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / filesystems / s3backer / fix-darwin-builds.patch
blobe5755f1cb9b08a27db8345ec9a9b2cc229749c86
1 From 303a669356fa7cd6bc95ac7076ce51b1cab3970a Mon Sep 17 00:00:00 2001
2 From: Adrian Ho <the.gromgit@gmail.com>
3 Date: Tue, 6 Sep 2022 10:49:10 +0800
4 Subject: [PATCH] Enable macOS builds
6 macOS requires explicit `environ` declaration.
7 ---
8 s3backer.h | 4 ++++
9 1 file changed, 4 insertions(+)
11 diff --git a/s3backer.h b/s3backer.h
12 index ccc9053..383e246 100644
13 --- a/s3backer.h
14 +++ b/s3backer.h
15 @@ -90,6 +90,10 @@
16 #include <zlib.h>
17 #include <fuse.h>
19 +#ifdef __APPLE__
20 +extern char **environ;
21 +#endif
23 #ifndef FUSE_OPT_KEY_DISCARD
24 #define FUSE_OPT_KEY_DISCARD -4
25 #endif