Skip to content

Commit

Permalink
Add 'Darwin' to unix-like platforms
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
luke-gumbley authored and dirk-thomas committed Aug 5, 2016
1 parent c0862a1 commit 8741260
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/rosgraph/src/rosgraph/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
"""
Expand Down

0 comments on commit 8741260

Please sign in to comment.