[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torsocks/master] Make sure __darwin__ is defined
commit 6c589a8d181546f02092b3b599be660cc08c35ff
Author: Luke Gallagher <luke@xxxxxxxxxxxxxxxxxx>
Date: Fri Aug 30 09:23:22 2013 +1000
Make sure __darwin__ is defined
Signed-off-by: David Goulet <dgoulet@xxxxxxxxx>
---
src/common/compat.h | 4 ++++
src/common/ref.h | 2 ++
2 files changed, 6 insertions(+)
diff --git a/src/common/compat.h b/src/common/compat.h
index a433339..18404b2 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -18,6 +18,10 @@
#ifndef TORSOCKS_COMPAT_H
#define TORSOCKS_COMPAT_H
+#if (defined(__APPLE__) && defined(__MACH__) && !defined(__darwin__))
+#define __darwin__ 1
+#endif
+
#if (defined(__linux__) || defined(__FreeBSD__) || defined(__darwin__))
#define RTLD_NEXT ((void *) -1)
diff --git a/src/common/ref.h b/src/common/ref.h
index aa0cc90..c7b878f 100644
--- a/src/common/ref.h
+++ b/src/common/ref.h
@@ -20,6 +20,8 @@
#include <assert.h>
+#include "compat.h"
+
struct ref {
long count;
};
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits