commit: b60b5ccb82f7dea4e222bc680f1b0ee8481154e3
parent f861f060e0d1643732f31db73474fa7a54a2fafd
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 12 Mar 2024 18:41:50 +0100
lib/*mode.c: S_ISVTX & al. are from XSI not simply POSIX
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/mode.c b/lib/mode.c
@@ -3,6 +3,7 @@
// SPDX-License-Identifier: MPL-2.0
#define _POSIX_C_SOURCE 200809L
+#define _XOPEN_SOURCE 700 // S_ISVTX
#include "mode.h"
#include "bitmasks.h"
diff --git a/lib/symbolize_mode.c b/lib/symbolize_mode.c
@@ -3,6 +3,7 @@
// SPDX-License-Identifier: MPL-2.0
#define _POSIX_C_SOURCE 200809L
+#define _XOPEN_SOURCE 700 // S_ISVTX, S_IFMT, S_IFDIR, …
#include "bitmasks.h"
#include "mode.h"