[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r12946: Support building for iPhone; patch from cjacker huang. (in tor/trunk: . src/or)
Author: nickm
Date: 2007-12-23 13:27:47 -0500 (Sun, 23 Dec 2007)
New Revision: 12946
Modified:
tor/trunk/
tor/trunk/ChangeLog
tor/trunk/configure.in
tor/trunk/src/or/or.h
Log:
r15648@tombo: nickm | 2007-12-23 13:27:30 -0500
Support building for iPhone; patch from cjacker huang.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r15648] on d9e39d38-0f13-419c-a857-e10a0ce2aa0c
Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog 2007-12-23 18:20:22 UTC (rev 12945)
+++ tor/trunk/ChangeLog 2007-12-23 18:27:47 UTC (rev 12946)
@@ -2,6 +2,11 @@
o Minor bugfixes:
- Fix configure.in logic for cross-compilation.
+ o Minor features:
+ - Support compilation to target iPhone; patch from cjacker huang.
+ To build for iPhone, pass the --enable-iphone option to configure.
+
+
Changes in version 0.2.0.14-alpha - 2007-12-23
o Major bugfixes:
- Fix a crash on startup if you install Tor 0.2.0.13-alpha fresh
Modified: tor/trunk/configure.in
===================================================================
--- tor/trunk/configure.in 2007-12-23 18:20:22 UTC (rev 12945)
+++ tor/trunk/configure.in 2007-12-23 18:27:47 UTC (rev 12946)
@@ -25,6 +25,15 @@
CFLAGS="$CFLAGS -g"
fi])
+#XXXX ideally, we should make this into a no-op, and detect whether we're
+#compiling for the iphone by using $target.
+AC_ARG_ENABLE(iphone,
+ AS_HELP_STRING(--enable-iphone, compile with iPhone support),
+ [if test x$enableval = xyes ; then
+ tor_cv_iphone=true
+ CFLAGS="$CFLAGS -D__DARWIN_UINX03 -DIPHONE"
+ fi])
+
AC_ARG_ENABLE(cell-pool,
AS_HELP_STRING(--disable-cell-pool, disable pool allocator for cells))
Modified: tor/trunk/src/or/or.h
===================================================================
--- tor/trunk/src/or/or.h 2007-12-23 18:20:22 UTC (rev 12945)
+++ tor/trunk/src/or/or.h 2007-12-23 18:27:47 UTC (rev 12946)
@@ -67,8 +67,10 @@
/** Upper bound on maximum simultaneous connections; can be lowered by
* config file. */
-#if defined(CYGWIN) || defined(__CYGWIN__)
-/* http://archives.seul.org/or/talk/Aug-2006/msg00210.html */
+#if defined(CYGWIN) || defined(__CYGWIN__) || defined(IPHONE)
+/* Re Cygwin, see http://archives.seul.org/or/talk/Aug-2006/msg00210.html */
+/* For an iPhone, the limit would be closer to 9999. But nobody seems to be
+ * running a server on an iPhone anyway? */
#define MAXCONNECTIONS 3200
#else
/* very high by default. "nobody should need more than this..." */