diff options
author | Calvin <[email protected]> | 2019-05-29 07:43:26 -0400 |
---|---|---|
committer | Calvin <[email protected]> | 2019-05-29 07:43:26 -0400 |
commit | e414c818360911ab759cef6a08b3ed133f3208ae (patch) | |
tree | 12d39abebfbdc7ab53310e000eb1d020a24b915d /erts/emulator/beam | |
parent | 8a0c0ae7defd1e9f5d41a88de8c3dc8a544a7c73 (diff) | |
download | otp-e414c818360911ab759cef6a08b3ed133f3208ae.tar.gz otp-e414c818360911ab759cef6a08b3ed133f3208ae.tar.bz2 otp-e414c818360911ab759cef6a08b3ed133f3208ae.zip |
Attempt at fixing AIX while keeping API compatibility
erl_interface has a function in a struct, and AIX headers, when you
use C instead of C++, pollute the global namespace with definitions
that override socket functions, and end up clobbering names of
things Erlang/OTP uses. The new socket interface of R22 was one of
the victims. I had previously tied to fix it for erl_interface,
but the change broke API public surface. What this does is replace
the name with a define, that defines to the same name on non-AIX,
but uses a "mangled" name on AIX instead. This means internal uses
of this function in the struct need to use the preprocessor define
instead of the "normal" name, and likewise external users too,
but those can be dealt with one-at-a-time on AIX instead of
breaking everyone else.
Diffstat (limited to 'erts/emulator/beam')
0 files changed, 0 insertions, 0 deletions