From 87412601f0eaec844c6d995d3b58595d2255c50a Mon Sep 17 00:00:00 2001 From: Luke Gumbley Date: Sun, 24 Jul 2016 11:23:12 +1200 Subject: [PATCH] Add 'Darwin' to unix-like platforms Prevents issue calling socket.getaddrinfo with the machine name where this is not a known local hostname (e.g. where the machine name hasn't been added to the hosts file). --- tools/rosgraph/src/rosgraph/network.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/rosgraph/src/rosgraph/network.py b/tools/rosgraph/src/rosgraph/network.py index 35c35ed559..0d42277016 100644 --- a/tools/rosgraph/src/rosgraph/network.py +++ b/tools/rosgraph/src/rosgraph/network.py @@ -101,8 +101,7 @@ def _is_unix_like_platform(): :returns: true if the platform conforms to UNIX/POSIX-style APIs @rtype: bool """ - #return platform.system() in ['Linux', 'Mac OS X', 'Darwin'] - return platform.system() in ['Linux', 'FreeBSD'] + return platform.system() in ['Linux', 'FreeBSD', 'Darwin'] def get_address_override(): """