From c20f6ac0253372ca001670d2eef2d71f81df6738 Mon Sep 17 00:00:00 2001 From: Emily Trau Date: Sun, 21 May 2023 12:15:42 +0200 Subject: [PATCH] lib: Define O_TMPFILE for GNU make 4.4.1. * include/fcntl.h (O_TMPFILE): New define. --- include/fcntl.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/fcntl.h b/include/fcntl.h index c5bc6951..09877471 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -1,6 +1,7 @@ /* -*-comment-start: "//";comment-end:""-*- * GNU Mes --- Maxwell Equations of Software * Copyright © 2017 Jan (janneke) Nieuwenhuizen + * Copyright © 2023 Emily Trau * * This file is part of GNU Mes. * @@ -40,10 +41,11 @@ #define O_APPEND 0x400 #ifdef __arm__ -#define O_DIRECTORY 0x4000 -/*#define O_DIRECT 0x10000*/ +#define O_DIRECTORY 0x4000 +#define O_TMPFILE 0x404000 #else -#define O_DIRECTORY 0x10000 +#define O_DIRECTORY 0x10000 +#define O_TMPFILE 0x410000 #endif #elif __GNU__