aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2024-02-06 11:54:29 +0100
committerPaul Cercueil <paul@crapouillou.net>2024-02-12 17:41:45 +0100
commit220df2aa0f8025ffe99287c3f5ea0e05436e3d08 (patch)
tree8cc87e0de47744d314c8914daa38945a9992f7c7 /render
parent9e426e70e68cc292f55dbd2c496bcfd6bea32caf (diff)
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 <paul@crapouillou.net>
Diffstat (limited to 'render')
-rw-r--r--render/gles2/pixel_format.c1
-rw-r--r--render/gles2/texture.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/render/gles2/pixel_format.c b/render/gles2/pixel_format.c
index 5cdf8c99..fdf091f1 100644
--- a/render/gles2/pixel_format.c
+++ b/render/gles2/pixel_format.c
@@ -1,3 +1,4 @@
+#define _POSIX_C_SOURCE 199309L
#include <drm_fourcc.h>
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
diff --git a/render/gles2/texture.c b/render/gles2/texture.c
index d66e9c16..d326da9d 100644
--- a/render/gles2/texture.c
+++ b/render/gles2/texture.c
@@ -1,3 +1,4 @@
+#define _POSIX_C_SOURCE 199309L
#include <assert.h>
#include <drm_fourcc.h>
#include <GLES2/gl2.h>