I found __linux in Linphone. It is not completely portable on all architectures, here is a similar bug in libusb:
https://github.com/libusb/libusb/pull/315 I had to patch it here to make it compile, I can't submit the patch because it looks like Gitlab doesn't allow developers to create new accounts. If somebody can help me with a Gitlab account I'll be happy to submit the merge request for this. https://gitlab.linphone.org/BC/public/liblinphone It is necessary to replace __linux with __linux__ in each of these files: $ find . -type f -name '*.c*' -exec grep -H __linux {} \; ./coreapi/linphonecore.c:#ifdef __linux ./src/core/paths/paths.cpp:#elif defined(__linux) ./tester/liblinphone_tester.c:#ifdef __linux ./tester/message_tester.c:#if defined(__linux__) && !defined(__ANDROID__) ./tester/register_tester.c:#ifdef __linux ./tester/setup_tester.c:#elif defined(__linux) || (defined(__APPLE__) && !TARGET_OS_IPHONE) || defined(_WIN32) ./obj-powerpc64le-linux-gnu/CMakeFiles/3.16.3/CompilerIdC/CMakeCCompilerId.c:#if defined(__linux) || defined(__linux__) || defined(linux) ./obj-powerpc64le-linux-gnu/CMakeFiles/3.16.3/CompilerIdCXX/CMakeCXXCompilerId.cpp:#if defined(__linux) || defined(__linux__) || defined(linux) _______________________________________________ Linphone-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/linphone-users
