Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rofl0r/proxychains-ng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2015-04-07 20:11:34 +0300
committerrofl0r <retnyg@gmx.net>2015-04-07 20:11:34 +0300
commit7b962a4ca3b4c8446fe5d238ad1778586d82ef7f (patch)
treeaa8adee24782da8a07445eb6e6ccb9466378ba8f
parent44ca9ca968c2b4c29335df9362b77a7f7f481fe8 (diff)
more openbsd compile fixesopenbsd
-rw-r--r--src/core.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 1176a80..25483c2 100644
--- a/src/core.c
+++ b/src/core.c
@@ -786,7 +786,11 @@ void proxy_freeaddrinfo(struct addrinfo *res) {
}
#if defined(IS_MAC) || defined(IS_OPENBSD)
-/* getservbyname on mac is using thread local storage, so we dont need mutex */
+#ifdef IS_OPENBSD /* OpenBSD has its own incompatible getservbyname_r */
+#define getservbyname_r mygetservbyname_r
+#endif
+/* getservbyname on mac is using thread local storage, so we dont need mutex
+ TODO: check if the same applies to OpenBSD */
static int getservbyname_r(const char* name, const char* proto, struct servent* result_buf,
char* buf, size_t buflen, struct servent** result) {
PFUNC();