Hi Bruno, Bruno Haible wrote: >> NetBSD fixed that declaration in 1997 [1], FreeBSD did in version >> 14.0 [2]. OpenBSD still has it declared with an int argument even >> though mode_t is a __uint32_t there [3] [4] [5]. > > Also, macOS is in the same camp as OpenBSD here.
I reported it with a proposed solution to OpenBSD so hopefully it will get changed at some point [1]. Not sure how to make a suggestion to the people working on macOS. > Since the test includes <unistd.h>, it should depend on the 'unistd' > module. Just to make sure we don't encounter a compilation error on > native Windows. Ah, okay. I thought that would only be necessary if using a function from <unistd.h> or macros like SEEK_*, *_FILENO, etc. I know Windows needs messing around with some platform-specific headers for those. Good to know, thanks. Collin [1] https://marc.info/?l=openbsd-bugs&m=171877409832450&w=2