Closed rzr closed 6 years ago
@rzr AF_UNIX
is also used elsewhere. Does this PR solve everything about building IoT.js?
I confirm current master branch of iotjs can build on TizenRT's master using this single patch.
For the record:
./external/iotjs/deps/libtuv/src/unix/stream.c:330: if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds))
./external/iotjs/deps/libtuv/src/unix/stream.c:989: * for sockets of type AF_UNIX. For all other types it will
./external/iotjs/deps/libtuv/src/unix/stream.c:996:#ifdef AF_UNIX
./external/iotjs/deps/libtuv/src/unix/stream.c:997: case AF_UNIX:
./external/iotjs/deps/libtuv/src/unix/pipe.c:64: err = uv__socket(AF_UNIX, SOCK_STREAM, 0);
./external/iotjs/deps/libtuv/src/unix/pipe.c:72: saddr.sun_family = AF_UNIX;
./external/iotjs/deps/libtuv/src/unix/pipe.c:167: err = uv__socket(AF_UNIX, SOCK_STREAM, 0);
./external/iotjs/deps/libtuv/src/unix/pipe.c:176: saddr.sun_family = AF_UNIX;
./external/iotjs/deps/libtuv/src/unix/tty.c:298: * for sockets of type AF_UNIX. For all other types it will
./external/iotjs/deps/libtuv/src/unix/tty.c:307: if (sa.sa_family == AF_UNIX)
@rzr Okay. I checked that pipe.c
and tty.c
are excluded from the build.
Problem was observed on Tizen:RT when building IoT.js
libtuv-DCO-1.0-Signed-off-by: Philippe Coval philippe.coval@osg.samsung.com