* tests/test-unistd-h.c: Prefer #error to emitting a syntax error. Check
that O_CLOEXEC is defined.
2025-02-16 Collin Funk <collin.funk1@gmail.com>
+ unistd-h tests: Check that unistd.h defines O_CLOEXEC.
+ * tests/test-unistd-h.c: Prefer #error to emitting a syntax error. Check
+ that O_CLOEXEC is defined.
+
unistd-h: Make sure O_CLOEXEC is defined.
* modules/unistd-h (Depends-on): Add fcntl-h.
* lib/unistd.in.h: Include fcntl.h if inclusion of unistd.h does not
/* Check that the various *_FILENO macros are defined. */
#if ! (defined STDIN_FILENO \
&& (STDIN_FILENO + STDOUT_FILENO + STDERR_FILENO == 3))
-missing or broken *_FILENO macros
+# error "missing or broken *_FILENO macros"
+#endif
+
+#ifndef O_CLOEXEC
+# error "O_CLOEXEC is not defined"
#endif
/* Check that the types are all defined. */