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 11:25:53 UTC
svn commit: r1132330 - /incubator/mesos/trunk/third_party/libprocess/pid.cpp
Author: benh
Date: Sun Jun 5 09:25:52 2011
New Revision: 1132330
URL: http://svn.apache.org/viewvc?rev=1132330&view=rev
Log:
Mac OS X doesn't have gethostbyname2_r.
Modified:
incubator/mesos/trunk/third_party/libprocess/pid.cpp
Modified: incubator/mesos/trunk/third_party/libprocess/pid.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/third_party/libprocess/pid.cpp?rev=1132330&r1=1132329&r2=1132330&view=diff
==============================================================================
--- incubator/mesos/trunk/third_party/libprocess/pid.cpp (original)
+++ incubator/mesos/trunk/third_party/libprocess/pid.cpp Sun Jun 5 09:25:52 2011
@@ -16,6 +16,11 @@
#include "pid.hpp"
#include "process.hpp"
+#ifdef __APPLE__
+#define gethostbyname2_r(name, af, ret, buf, buflen, result, h_errnop) \
+ ({ *(result) = gethostbyname2(name, af); 0; })
+#endif // __APPLE__
+
using std::istream;
using std::ostream;