Skip to content

socket.c:879:2: error: No reference implementation for getifaddrs available for this platform. #45

@coderjing

Description

@coderjing

err: Making all in src
CC glue.lo
CC socket.lo
socket.c:879:2: error: No reference implementation for getifaddrs available for this platform.
879 | #error No reference implementation for getifaddrs available for this platform.
| ^
socket.c:887:6: error: call to undeclared function 'getifaddrs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
887 | if (getifaddrs(&ifaddr) != -1) {
| ^
socket.c:936:3: error: call to undeclared function 'freeifaddrs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
936 | freeifaddrs(ifaddr);
| ^
socket.c:955:6: error: call to undeclared function 'getifaddrs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
955 | if (getifaddrs(&ifaddr) == -1) {
| ^
socket.c:1026:2: error: call to undeclared function 'freeifaddrs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1026 | freeifaddrs(ifaddr);
| ^
5 errors generated.

I am communicating between the Android car device and the iOS device through USB. USB is abstracted as TCP, and functions such as socket and address lookup should be used. This method is not implemented in the Android NDK, do I need to implement it myself?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions