https://trac.macports.org/ticket/74045 --- lib/random_dev_urandom.c.orig 2026-05-10 22:46:50 +++ lib/random_dev_urandom.c 2026-05-29 10:15:02 @@ -41,6 +41,10 @@ #include // open #include // close +#ifndef O_CLOEXEC +#define O_CLOEXEC 0 +#endif + /* Extract entropy from /dev/urandom */ bool writeRandomBytes_dev_urandom(void *target, size_t count) {