Commit 0029093f authored by Jason Madden's avatar Jason Madden Committed by GitHub

Merge pull request #1549 from wiggin15/sunos

Solaris 10: define SUNOS_NO_IFADDRS to make libuv compile correctly
parents fbc2e7c3 c177a5a2
...@@ -7,9 +7,10 @@ ...@@ -7,9 +7,10 @@
# this file to know what functions are created and available on the generated # this file to know what functions are created and available on the generated
# module. # module.
from __future__ import absolute_import, print_function from __future__ import absolute_import, print_function
import sys
import os import os
import os.path # pylint:disable=no-name-in-module import os.path # pylint:disable=no-name-in-module
import platform
import sys
from cffi import FFI from cffi import FFI
...@@ -239,6 +240,10 @@ elif sys.platform.startswith('sunos'): ...@@ -239,6 +240,10 @@ elif sys.platform.startswith('sunos'):
_add_library('nsl') _add_library('nsl')
_add_library('sendfile') _add_library('sendfile')
_add_library('socket') _add_library('socket')
if platform.release() == '5.10':
# https://github.com/libuv/libuv/issues/1458
# https://github.com/giampaolo/psutil/blob/4d6a086411c77b7909cce8f4f141bbdecfc0d354/setup.py#L298-L300
_define_macro('SUNOS_NO_IFADDRS', '')
elif sys.platform.startswith('aix'): elif sys.platform.startswith('aix'):
_define_macro('_LINUX_SOURCE_COMPAT', 1) _define_macro('_LINUX_SOURCE_COMPAT', 1)
_add_library('perfstat') _add_library('perfstat')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment