You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 05:16:42 UTC

svn commit: r1131525 [3/3] - in /incubator/mesos/trunk: ./ src/ src/tests/ src/third_party/glog-0.3.0/src/ src/third_party/libprocess/ src/third_party/libprocess/third_party/libev-3.8/

Modified: incubator/mesos/trunk/configure.ac
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/configure.ac?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/configure.ac (original)
+++ incubator/mesos/trunk/configure.ac Sun Jun  5 03:16:40 2011
@@ -42,6 +42,13 @@ case "${target_os}" in
     echo ===========================================================
     OS_NAME=linux
     ;;
+  darwin*)
+    echo ===========================================================
+    echo Setting up build environment for ${target_cpu} ${target_os}
+    echo ===========================================================
+   OS_NAME=macosx
+   LDFLAGS="${LDFLAGS} `$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_config_var("LINKFORSHARED") + " -lpython" + sysconfig.get_config_var("VERSION")'`"
+   ;;
   *)
     AC_MSG_ERROR($UNSUPPORTED_OS)
   esac

Modified: incubator/mesos/trunk/src/allocator_factory.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/allocator_factory.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/allocator_factory.cpp (original)
+++ incubator/mesos/trunk/src/allocator_factory.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include "allocator_factory.hpp"
 #include "simple_allocator.hpp"
 

Modified: incubator/mesos/trunk/src/hash_pid.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/hash_pid.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/hash_pid.cpp (original)
+++ incubator/mesos/trunk/src/hash_pid.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <boost/unordered_map.hpp>
 
 #include "hash_pid.hpp"

Modified: incubator/mesos/trunk/src/isolation_module_factory.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/isolation_module_factory.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/isolation_module_factory.cpp (original)
+++ incubator/mesos/trunk/src/isolation_module_factory.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include "isolation_module_factory.hpp"
 #include "process_based_isolation_module.hpp"
 #ifdef __sun__

Modified: incubator/mesos/trunk/src/local.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/local.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/local.cpp (original)
+++ incubator/mesos/trunk/src/local.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <getopt.h>
 
 #include <iostream>

Modified: incubator/mesos/trunk/src/lxc_isolation_module.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/lxc_isolation_module.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/lxc_isolation_module.cpp (original)
+++ incubator/mesos/trunk/src/lxc_isolation_module.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include "lxc_isolation_module.hpp"
 
 #include <algorithm>

Modified: incubator/mesos/trunk/src/master.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/master.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/master.cpp (original)
+++ incubator/mesos/trunk/src/master.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include "allocator.hpp"
 #include "master.hpp"
 #include "master_webui.hpp"

Modified: incubator/mesos/trunk/src/master_main.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/master_main.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/master_main.cpp (original)
+++ incubator/mesos/trunk/src/master_main.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <getopt.h>
 
 #include "master.hpp"

Modified: incubator/mesos/trunk/src/master_webui.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/master_webui.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/master_webui.cpp (original)
+++ incubator/mesos/trunk/src/master_webui.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <sstream>
 
 #include "master_webui.hpp"

Modified: incubator/mesos/trunk/src/messages.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/messages.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/messages.cpp (original)
+++ incubator/mesos/trunk/src/messages.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include "messages.hpp"
 
 using std::map;

Modified: incubator/mesos/trunk/src/nexus_exec.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/nexus_exec.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/nexus_exec.cpp (original)
+++ incubator/mesos/trunk/src/nexus_exec.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <cerrno>
 #include <iostream>
 #include <string>

Modified: incubator/mesos/trunk/src/nexus_local.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/nexus_local.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/nexus_local.cpp (original)
+++ incubator/mesos/trunk/src/nexus_local.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <getopt.h>
 #include <pthread.h>
 

Modified: incubator/mesos/trunk/src/nexus_sched.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/nexus_sched.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/nexus_sched.cpp (original)
+++ incubator/mesos/trunk/src/nexus_sched.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <dlfcn.h>
 #include <errno.h>
 #include <pwd.h>

Modified: incubator/mesos/trunk/src/process_based_isolation_module.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/process_based_isolation_module.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/process_based_isolation_module.cpp (original)
+++ incubator/mesos/trunk/src/process_based_isolation_module.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include "process_based_isolation_module.hpp"
 
 #include "foreach.hpp"

Modified: incubator/mesos/trunk/src/simple_allocator.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/simple_allocator.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/simple_allocator.cpp (original)
+++ incubator/mesos/trunk/src/simple_allocator.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <algorithm>
 
 #include <glog/logging.h>

Modified: incubator/mesos/trunk/src/slave.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/slave.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/slave.cpp (original)
+++ incubator/mesos/trunk/src/slave.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <getopt.h>
 
 #include "slave.hpp"

Modified: incubator/mesos/trunk/src/slave_main.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/slave_main.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/slave_main.cpp (original)
+++ incubator/mesos/trunk/src/slave_main.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <getopt.h>
 
 #include "slave.hpp"

Modified: incubator/mesos/trunk/src/slave_webui.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/slave_webui.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/slave_webui.cpp (original)
+++ incubator/mesos/trunk/src/slave_webui.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <sstream>
 
 #include "slave_webui.hpp"

Modified: incubator/mesos/trunk/src/tests/test_master.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/tests/test_master.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/tests/test_master.cpp (original)
+++ incubator/mesos/trunk/src/tests/test_master.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <gtest/gtest.h>
 
 #include <boost/lexical_cast.hpp>

Modified: incubator/mesos/trunk/src/tests/test_resources.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/tests/test_resources.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/tests/test_resources.cpp (original)
+++ incubator/mesos/trunk/src/tests/test_resources.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <sstream>
 #include <string>
 

Modified: incubator/mesos/trunk/src/third_party/glog-0.3.0/src/logging.cc
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/third_party/glog-0.3.0/src/logging.cc?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/third_party/glog-0.3.0/src/logging.cc (original)
+++ incubator/mesos/trunk/src/third_party/glog-0.3.0/src/logging.cc Sun Jun  5 03:16:40 2011
@@ -1755,7 +1755,7 @@ int posix_strerror_r(int err, char *buf,
     } else {
       buf[0] = '\000';
 #if defined(OS_MACOSX) || defined(OS_FREEBSD) || defined(OS_OPENBSD)
-      if (reinterpret_cast<int>(rc) < sys_nerr) {
+      if (reinterpret_cast<long int>(rc) < sys_nerr) {
         // This means an error on MacOSX or FreeBSD.
         return -1;
       }

Modified: incubator/mesos/trunk/src/third_party/libprocess/configure
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/third_party/libprocess/configure?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/third_party/libprocess/configure (original)
+++ incubator/mesos/trunk/src/third_party/libprocess/configure Sun Jun  5 03:16:40 2011
@@ -2870,11 +2870,7 @@ if test "${with_ht+set}" = set; then
 echo "$as_me: error:
 *** --with-ht requires an argument" >&2;}
    { (exit 1); exit 1; }; } ;;
-		 ''|no) { { echo "$as_me:$LINENO: error:
-*** The ht library is REQUIRED and cannot be ommited using --without-ht." >&5
-echo "$as_me: error:
-*** The ht library is REQUIRED and cannot be ommited using --without-ht." >&2;}
-   { (exit 1); exit 1; }; } ;;
+		 ''|no) ;;
 		 *) CFLAGS="$CFLAGS -I$withval/include"
 		    CPPFLAGS="$CPPFLAGS -I$withval/include"
 		    CXXFLAGS="$CXXFLAGS -I$withval/include"
@@ -2926,7 +2922,8 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
 cat >>confdefs.h <<\_ACEOF
 #define HAVE_HT 1
 _ACEOF
- { echo "$as_me:$LINENO: result: yes" >&5
+
+                 { echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6; }
 else
   echo "$as_me: failed program was:" >&5
@@ -3003,7 +3000,8 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
 cat >>confdefs.h <<\_ACEOF
 #define HAVE_LITHE 1
 _ACEOF
- { echo "$as_me:$LINENO: result: yes" >&5
+
+                 { echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6; }
 else
   echo "$as_me: failed program was:" >&5
@@ -3016,8 +3014,6 @@ fi
 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
       conftest$ac_exeext conftest.$ac_ext
 
-
-
 #AC_ARG_WITH([boost-headers],
 #  AC_HELP_STRING([--with-boost-headers=DIR],
 #                 [find Boost headers in DIR]),
@@ -3509,7 +3505,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&
 else
   ac_cv_header_stdc=no
 fi
-rm -f conftest*
+rm -f -r conftest*
 
 fi
 
@@ -3530,7 +3526,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&
 else
   ac_cv_header_stdc=no
 fi
-rm -f conftest*
+rm -f -r conftest*
 
 fi
 
@@ -4345,7 +4341,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&
 else
   ac_cv_prog_gcc_traditional=no
 fi
-rm -f conftest*
+rm -f -r conftest*
 
 
   if test $ac_cv_prog_gcc_traditional = no; then
@@ -4362,7 +4358,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&
   $EGREP "$ac_pattern" >/dev/null 2>&1; then
   ac_cv_prog_gcc_traditional=yes
 fi
-rm -f conftest*
+rm -f -r conftest*
 
   fi
 fi
@@ -5481,7 +5477,7 @@ cat >>confdefs.h <<_ACEOF
 #define SELECT_TYPE_ARG5 ($3)
 _ACEOF
 
-rm -f conftest*
+rm -f -r conftest*
 
 
 
@@ -5619,6 +5615,9 @@ ac_configure="$SHELL $ac_aux_dir/configu
 subdirs="$subdirs third_party/libev-3.8"
 
 
+# Temporary fix so we don't build dylib's on Mac OS X.
+ac_configure_args="$ac_configure_args --enable-shared=no"
+
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
 # tests run on this system so they can be shared between configure

Modified: incubator/mesos/trunk/src/third_party/libprocess/configure.ac
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/third_party/libprocess/configure.ac?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/third_party/libprocess/configure.ac (original)
+++ incubator/mesos/trunk/src/third_party/libprocess/configure.ac Sun Jun  5 03:16:40 2011
@@ -121,4 +121,7 @@ AC_CHECK_FUNCS([gethostbyname gethostnam
 AC_CONFIG_FILES([Makefile examples/Makefile swig/Makefile])
 AC_CONFIG_SUBDIRS([third_party/libev-3.8])
 
+# Temporary fix so we don't build dylib's on Mac OS X.
+ac_configure_args="$ac_configure_args --enable-shared=no"
+
 AC_OUTPUT

Modified: incubator/mesos/trunk/src/third_party/libprocess/process.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/third_party/libprocess/process.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/third_party/libprocess/process.cpp (original)
+++ incubator/mesos/trunk/src/third_party/libprocess/process.cpp Sun Jun  5 03:16:40 2011
@@ -17,6 +17,10 @@
    would probably be faster, and have less contention for the mutex
    (that might mean we can eliminate contention for the mutex!). */
 
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <assert.h>
 #include <errno.h>
 #include <ev.h>
@@ -86,22 +90,33 @@ using std::stack;
 
 
 #ifdef __sun__
-
 #define gethostbyname2(name, _) gethostbyname(name)
-
 #ifndef MSG_NOSIGNAL
 #define MSG_NOSIGNAL 0
 #endif
-
 #ifndef SOL_TCP
 #define SOL_TCP IPPROTO_TCP
 #endif
+#ifndef MAP_32BIT
+#define MAP_32BIT 0
+#endif
+#endif /* __sun__ */
 
+#ifdef __APPLE__
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+#ifndef MSG_NOSIGNAL
+#define MSG_NOSIGNAL 0
+#endif
+#ifndef SOL_TCP
+#define SOL_TCP IPPROTO_TCP
+#endif
 #ifndef MAP_32BIT
 #define MAP_32BIT 0
 #endif
+#endif /* __APPLE__ */
 
-#endif /* __sun__ */
 
 
 #define Byte (1)

Modified: incubator/mesos/trunk/src/third_party/libprocess/record-process.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/third_party/libprocess/record-process.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/third_party/libprocess/record-process.cpp (original)
+++ incubator/mesos/trunk/src/third_party/libprocess/record-process.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <arpa/inet.h>
 
 #include "record-process.hpp"

Modified: incubator/mesos/trunk/src/third_party/libprocess/serialization.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/third_party/libprocess/serialization.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/third_party/libprocess/serialization.cpp (original)
+++ incubator/mesos/trunk/src/third_party/libprocess/serialization.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <stdlib.h>
 
 #include <arpa/inet.h>

Modified: incubator/mesos/trunk/src/third_party/libprocess/third_party/libev-3.8/config.h
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/third_party/libprocess/third_party/libev-3.8/config.h?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/third_party/libprocess/third_party/libev-3.8/config.h (original)
+++ incubator/mesos/trunk/src/third_party/libprocess/third_party/libev-3.8/config.h Sun Jun  5 03:16:40 2011
@@ -5,25 +5,25 @@
 /* #undef HAVE_CLOCK_GETTIME */
 
 /* "use syscall interface for clock_gettime" */
-#define HAVE_CLOCK_SYSCALL 1
+/* #undef HAVE_CLOCK_SYSCALL */
 
 /* Define to 1 if you have the <dlfcn.h> header file. */
 #define HAVE_DLFCN_H 1
 
 /* Define to 1 if you have the `epoll_ctl' function. */
-#define HAVE_EPOLL_CTL 1
+/* #undef HAVE_EPOLL_CTL */
 
 /* Define to 1 if you have the `eventfd' function. */
-#define HAVE_EVENTFD 1
+/* #undef HAVE_EVENTFD */
 
 /* Define to 1 if you have the `inotify_init' function. */
-#define HAVE_INOTIFY_INIT 1
+/* #undef HAVE_INOTIFY_INIT */
 
 /* Define to 1 if you have the <inttypes.h> header file. */
 #define HAVE_INTTYPES_H 1
 
 /* Define to 1 if you have the `kqueue' function. */
-/* #undef HAVE_KQUEUE */
+#define HAVE_KQUEUE 1
 
 /* Define to 1 if you have the `m' library (-lm). */
 #define HAVE_LIBM 1
@@ -53,7 +53,7 @@
 #define HAVE_SELECT 1
 
 /* Define to 1 if you have the `signalfd' function. */
-#define HAVE_SIGNALFD 1
+/* #undef HAVE_SIGNALFD */
 
 /* Define to 1 if you have the <stdint.h> header file. */
 #define HAVE_STDINT_H 1
@@ -68,16 +68,16 @@
 #define HAVE_STRING_H 1
 
 /* Define to 1 if you have the <sys/epoll.h> header file. */
-#define HAVE_SYS_EPOLL_H 1
+/* #undef HAVE_SYS_EPOLL_H */
 
 /* Define to 1 if you have the <sys/eventfd.h> header file. */
 /* #undef HAVE_SYS_EVENTFD_H */
 
 /* Define to 1 if you have the <sys/event.h> header file. */
-/* #undef HAVE_SYS_EVENT_H */
+#define HAVE_SYS_EVENT_H 1
 
 /* Define to 1 if you have the <sys/inotify.h> header file. */
-#define HAVE_SYS_INOTIFY_H 1
+/* #undef HAVE_SYS_INOTIFY_H */
 
 /* Define to 1 if you have the <sys/queue.h> header file. */
 #define HAVE_SYS_QUEUE_H 1

Modified: incubator/mesos/trunk/src/third_party/libprocess/tuple.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/third_party/libprocess/tuple.cpp?rev=1131525&r1=1131524&r2=1131525&view=diff
==============================================================================
--- incubator/mesos/trunk/src/third_party/libprocess/tuple.cpp (original)
+++ incubator/mesos/trunk/src/third_party/libprocess/tuple.cpp Sun Jun  5 03:16:40 2011
@@ -1,3 +1,7 @@
+#ifdef __APPLE__
+#define _XOPEN_SOURCE
+#endif /* __APPLE__ */
+
 #include <stdlib.h>
 
 #include "tuple.hpp"