summaryrefslogtreecommitdiff
path: root/Userland/Utilities/mktemp.cpp
diff options
context:
space:
mode:
authorGunnar Beutner <gunnar@beutner.name>2021-04-11 05:53:37 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-11 09:51:20 +0200
commit8ca5b8c0652bf73b53ddbbade9738432bd7c20c6 (patch)
treed69cdc937f652a6453302aa9a4b91f658ce149db /Userland/Utilities/mktemp.cpp
parentbe4b20c14d13246b6b798e931ede2df22de54737 (diff)
downloadserenity-8ca5b8c0652bf73b53ddbbade9738432bd7c20c6.zip
LibC: Move S_* defines into <fcntl.h>
According to the Single UNIX Specification, Version 2 that's where those macros should be defined. This fixes the libiconv port. This also fixes some (but not all) build errors for the diffutils and nano ports.
Diffstat (limited to 'Userland/Utilities/mktemp.cpp')
-rw-r--r--Userland/Utilities/mktemp.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Utilities/mktemp.cpp b/Userland/Utilities/mktemp.cpp
index 3b6b962690..5d9642d101 100644
--- a/Userland/Utilities/mktemp.cpp
+++ b/Userland/Utilities/mktemp.cpp
@@ -26,6 +26,7 @@
#include <AK/LexicalPath.h>
#include <LibCore/ArgsParser.h>
+#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>