View | Details | Raw Unified | Return to bug 259951
Collapse All | Expand All

(-)./shadowsocks-libev/files/patch-libcork_src_libcork_posix_env.c (+22 lines)
Line 0 Link Here
1
--- libcork/src/libcork/posix/env.c.orig	2019-07-24 14:01:14 UTC
2
+++ libcork/src/libcork/posix/env.c
3
@@ -194,12 +194,19 @@ cork_env_set_vars(void *user_data, struct cork_hash_ta
4
  *
5
  * [1] http://www.gnu.org/software/gnulib/manual/html_node/clearenv.html
6
  */
7
+
8
+#if (defined(__FreeBSD__) && (__FreeBSD__ < 14))
9
+/* Since FreeBSD 14.0-CURRENT, the clearenv(3) function was added to stdlib.
10
+ * See https://reviews.freebsd.org/R10:597b02675751e48dd04777f1e91fee382bf3a966
11
+ */
12
+
13
 static void
14
 clearenv(void)
15
 {
16
     *environ = NULL;
17
 }
18
 
19
+#endif
20
 #else
21
 /* Otherwise assume that we have clearenv available. */
22
 #endif

Return to bug 259951