aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-05-14 22:51:51 -0400
committerNick Mathewson <nickm@torproject.org>2014-05-14 22:51:51 -0400
commita6eea86a2c915ef424c17920139babcfe42f3704 (patch)
tree5ce52e3783d8b4b3d4e3de42c62b22875c4a658c /src/common/compat.h
parenta88923e455cb0cae0f5fd7e705a2cbf45df2e5aa (diff)
parentf694a443fc35e91d301470c60a7989d4fbd6de71 (diff)
downloadtor-a6eea86a2c915ef424c17920139babcfe42f3704.tar.gz
tor-a6eea86a2c915ef424c17920139babcfe42f3704.zip
Merge branch 'bug11946'
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 314b1aa001..683c4d0897 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -633,6 +633,11 @@ int switch_id(const char *user);
char *get_user_homedir(const char *username);
#endif
+#ifndef _WIN32
+const struct passwd *tor_getpwnam(const char *username);
+const struct passwd *tor_getpwuid(uid_t uid);
+#endif
+
int get_parent_directory(char *fname);
char *make_path_absolute(char *fname);