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 2015/06/18 14:43:36 UTC

mesos git commit: Removed unused macros.

Repository: mesos
Updated Branches:
  refs/heads/master 869b8f06b -> 53acb048c


Removed unused macros.

Review: https://reviews.apache.org/r/35441


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/53acb048
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/53acb048
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/53acb048

Branch: refs/heads/master
Commit: 53acb048cb1004678d0622f75aca6d7cd12d5f71
Parents: 869b8f0
Author: Benjamin Hindman <be...@gmail.com>
Authored: Sun Jun 14 10:25:02 2015 -0700
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Thu Jun 18 05:43:15 2015 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp | 10 ----------
 1 file changed, 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/53acb048/3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
index 95b4b33..1e7aed0 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
@@ -101,16 +101,6 @@
 #include <stout/os/sysctl.hpp>
 #endif // __APPLE__
 
-#if defined(__APPLE__)
-// Assigning the result pointer to ret silences an unused var warning.
-#define gethostbyname2_r(name, af, ret, buf, buflen, result, h_errnop)  \
-  ({ (void)ret; *(result) = gethostbyname2(name, af); 0; })
-#elif defined(__sun)
-#define gethostbyname2_r(name, af, ret, buf, buflen, result, h_errnop)  \
-  ({ (void)af; *(result) = \
-    gethostbyname_r(name, ret, buf, buflen, h_errnop); 0; })
-#endif
-
 // Need to declare 'environ' pointer for non OS X platforms.
 #ifndef __APPLE__
 extern char** environ;