summaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2012-02-14 12:21:03 +0100
committerNick Mathewson <nickm@torproject.org>2012-02-14 11:18:39 -0500
commitefb7b9dec135594718b765234bc1f745855f60d2 (patch)
treecf8b42d4c5c221354e0b1bf97a7a6ef8e9f42056 /src/common/compat.h
parentefcdc930fb02d471ef1a5f4c09a30ea512ca5a8b (diff)
downloadtor-efb7b9dec135594718b765234bc1f745855f60d2.tar.gz
tor-efb7b9dec135594718b765234bc1f745855f60d2.zip
Use _NSGetEnviron() instead of environ where required
OS X would otherwise crash with a segfault when linked statically to some libraries.
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index fa1ef90eb7..65e6cb49e0 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -581,6 +581,8 @@ char *get_user_homedir(const char *username);
int get_parent_directory(char *fname);
char *make_path_absolute(char *fname);
+char **get_environment(void);
+
int spawn_func(void (*func)(void *), void *data);
void spawn_exit(void) ATTR_NORETURN;