[or-cvs] [torsocks/master] Move MAP_ANONYMOUS to common.h

mwenge at seul.org mwenge at seul.org
Sat Sep 26 08:46:30 UTC 2009


Author: mwenge <robert at roberthogan.net>
Date: Sat, 15 Aug 2009 12:18:05 +0100
Subject: Move MAP_ANONYMOUS to common.h
Commit: 2965c114dd4054d40b3c2e3524bb77c37a03e60f

---
 src/common.h |    7 +++++++
 src/tsocks.c |    7 -------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/common.h b/src/common.h
index 453359a..811e7fa 100644
--- a/src/common.h
+++ b/src/common.h
@@ -72,3 +72,10 @@ unsigned int resolve_ip(char *, int, int);
 #define MSGWARN   1
 #define MSGNOTICE 2
 #define MSGDEBUG  2
+
+/* Required by some BSDs */
+#ifndef  MAP_ANONYMOUS
+#ifdef MAP_ANON
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+#endif
diff --git a/src/tsocks.c b/src/tsocks.c
index 91b5a14..60522c2 100644
--- a/src/tsocks.c
+++ b/src/tsocks.c
@@ -54,13 +54,6 @@
 #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    */
 
-- 
1.5.6.5




More information about the tor-commits mailing list