7161369 Update clisp to version 2.49
7196595 Timestamp problem causes various clisp files to be delivered twice
--- libtorrent-0.12.2.orig/src/data/memory_chunk.cc (revision 1060)
+++ libtorrent-0.12.2/src/data/memory_chunk.cc (working copy)
@@ -41,6 +41,16 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/mman.h>
+#if defined(__sun) && defined(__SVR4)
+/* Ugly hack to make this compile on Solaris with g++. See
+ * http://www.opensolaris.org/jive/thread.jspa?threadID=21035&tstart=0
+ */
+#if (_POSIX_C_SOURCE > 2) || defined(_XPG4_2)
+extern "C" {
+extern int madvise(caddr_t, size_t, int);
+}
+#endif
+#endif
#include <rak/error_number.h>
#include "torrent/exceptions.h"
--- libtorrent-0.12.2.orig/scripts/common.m4 2008-05-07 08:19:12.000000000 -0400
+++ libtorrent-0.12.2/scripts/common.m4 2008-06-23 17:04:24.567475080 -0400
@@ -170,7 +170,7 @@
AC_COMPILE_IFELSE(
[[#include <sys/types.h>
#include <sys/mman.h>
- void f() { static char test[1024]; madvise((void *)test, sizeof(test), MADV_NORMAL); }
+ void f() { static char test[1024]; madvise((char *)test, sizeof(test), MADV_NORMAL); }
]],
[
AC_MSG_RESULT(yes)