SUMMARY kdesu stopped to build under macOS after this MR: https://invent.kde.org/frameworks/kdesu/-/merge_requests/14 STEPS TO REPRODUCE 1. Try to build kdesu on macOS OBSERVED RESULT /tmp/kf5-kdesu-20220301-88703-7d14qt/kdesu-5.91.0/src/kdesud/kdesud.cpp:255:44: error: use of undeclared identifier 'SOCK_CLOEXEC' sockfd = socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0); ^ /tmp/kf5-kdesu-20220301-88703-7d14qt/kdesu-5.91.0/src/kdesud/kdesud.cpp:355:18: error: use of undeclared identifier 'dup3' sockfd = dup3(sockfd, 3, O_CLOEXEC); ^ /tmp/kf5-kdesu-20220301-88703-7d14qt/kdesu-5.91.0/src/kdesud/kdesud.cpp:391:5: error: use of undeclared identifier 'pipe2' pipe2(pipeOfDeath, O_CLOEXEC); EXPECTED RESULT Should build. SOFTWARE/OS VERSIONS macOS: 12.3 KDE Frameworks Version: 5.91 Qt Version: 5.15.2
I've been informed that kdesu is not intended to be built for Mac or Windows. It's for Linux and *BSD only.
How many *BSDs have all of this syscalls except FreeBSD?
And macOS is largely derived from original BSD with some later updates and backports.