blob: 4fe63eab5f716c18bd4dc5c3460921e1cda3e2c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--- src/tsocks.c.orig 2009-11-08 14:35:11.000000000 +0200
+++ src/tsocks.c 2009-11-13 17:00:10.412574127 +0200
@@ -54,6 +54,13 @@
#define _GNU_SOURCE
#endif
+/* Required by some BSDs */
+#ifndef MAP_ANONYMOUS
+#ifdef MAP_ANON
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+#endif
+
/* Global configuration variables */
const char *progname = "libtorsocks"; /* Name used in err msgs */
@@ -163,7 +169,7 @@
void tsocks_init(void) {
#define LOAD_ERROR(s,l) { \
- char *error; \
+ const char *error; \
error = dlerror(); \
show_msg(l, "The symbol %s() was not found in any shared " \
"library. The error reported was: %s!\n", s, \
|