From 220df2aa0f8025ffe99287c3f5ea0e05436e3d08 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Tue, 6 Feb 2024 11:54:29 +0100 Subject: Add more POSIX compliance macros to fix uClibc support - Add POSIX 1993.09 compliance macro in source files that use "struct timespec"; - Add POSIX 2001.12 compliance macro in source files that use "struct sigaction" and the SA_SIGINFO macro, or the fchmod() function; - Add POSIX 2008.09 compliance macro in source files that use the getline() function. These compliance macros are enough for wlroots to compile with the git-master version of uClibc-ng. Signed-off-by: Paul Cercueil --- xcursor/xcursor.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xcursor') diff --git a/xcursor/xcursor.c b/xcursor/xcursor.c index 7e1f310f..17ad758b 100644 --- a/xcursor/xcursor.c +++ b/xcursor/xcursor.c @@ -23,6 +23,7 @@ * SOFTWARE. */ +#define _POSIX_C_SOURCE 200809L #define _DEFAULT_SOURCE #include #include -- cgit v1.2.3