This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch wl/browser-all
in repository enlightenment.
View the commit online.
commit b2706698d6d98255651c94f7115224092ea4d3b8
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Aug 16 19:59:01 2026 -0600
tests - define _GNU_SOURCE where memfd_create is used
test_buffer_scale.c does not build here: glibc declares memfd_create behind
__USE_GNU in <sys/mman.h>, and GCC has made an implicit function declaration
an error rather than a warning, so the file fails to compile outright.
The rest of the tree does not hit this because it gets _GNU_SOURCE from
config.h (meson.build sets it). The test clients deliberately do not include
config.h - they are plain wayland-client programs with no coupling to E's
build - so they have to say it themselves.
Found while building with -Dtests=true on this machine; nothing to do with
the test's own subject matter.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
---
src/{protocol => modules/wl_test}/wl-test.xml | 0
src/tests/wayland/test_buffer_scale.c | 3 +++
2 files changed, 3 insertions(+)
diff --git a/src/protocol/wl-test.xml b/src/modules/wl_test/wl-test.xml
similarity index 100%
rename from src/protocol/wl-test.xml
rename to src/modules/wl_test/wl-test.xml
diff --git a/src/tests/wayland/test_buffer_scale.c b/src/tests/wayland/test_buffer_scale.c
index 362a8a4d6..991f1dac3 100644
--- a/src/tests/wayland/test_buffer_scale.c
+++ b/src/tests/wayland/test_buffer_scale.c
@@ -12,6 +12,9 @@
* other. A surface's size on screen depends on the scale of the output it is
* on, so the same buffer has to come out a different size on each.
*/
+/* memfd_create is behind __USE_GNU in <sys/mman.h>. The tests do not include
+ * config.h, where the rest of the tree gets _GNU_SOURCE from. */
+#define _GNU_SOURCE 1
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.