summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/mkhtemp.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-04-01 11:36:41 +0100
committerLeah Rowe <leah@libreboot.org>2026-04-01 11:52:53 +0100
commit2c40ad78166c4cdb667caf4238080a4708c43326 (patch)
treedc67bccbc3eb8725e1d5be65dc9f638ff650b5a2 /util/libreboot-utils/mkhtemp.c
parent716140b80feebaeea5ef833de1f6acae68e8a8f1 (diff)
lbutils: only use GNU SOURCE for syscall
and remove manual prototypes; fchmod, realpath and so on rely on the _XOPEN_SOURCE macro. the POSIX macro wasn't needed: _XOPEN_SOURCE is sufficient. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/mkhtemp.c')
-rw-r--r--util/libreboot-utils/mkhtemp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/util/libreboot-utils/mkhtemp.c b/util/libreboot-utils/mkhtemp.c
index c8ddb1b1..86aab536 100644
--- a/util/libreboot-utils/mkhtemp.c
+++ b/util/libreboot-utils/mkhtemp.c
@@ -16,9 +16,8 @@
* while the specification that it implements evolves.
*/
-#if !defined(_POSIX_C_SOURCE)
-/* for openat2 on linux */
-#define _POSIX_C_SOURCE 200809L
+#ifndef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 700
#endif
#include <sys/types.h>