From: Christian Weisgerber Subject: Re: -portable: add a wrapper for open() on FreeBSD To: gameoftrees@openbsd.org Date: Sun, 26 Sep 2021 19:08:38 +0200 Todd C. Miller: > Everything is terrible. I still think we are better off with #ifdefs > testing for the existence of the errno define and not a specific OS. So like this, as an alternative to stsp's proposal: return (errno == ELOOP #ifdef EMLINK || errno == EMLINK #endif #ifdef EFTYPE || errno == EFTYPE #endif ); *shrug* -- Christian "naddy" Weisgerber naddy@mips.inka.de