Skip to content

Commit 2032e61

Browse files
broonieshuahkh
authored andcommitted
kselftest/alsa: Ensure _GNU_SOURCE is defined
The pcmtest driver tests use the kselftest harness which requires that _GNU_SOURCE is defined but nothing causes it to be defined. Since the KHDR_INCLUDES Makefile variable has had the required define added let's use that, this should provide some futureproofing. Fixes: daef47b ("selftests: Compile kselftest headers with -D_GNU_SOURCE") Signed-off-by: Mark Brown <broonie@kernel.org> Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 1613e60 commit 2032e61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/testing/selftests/alsa/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
#
33

4-
CFLAGS += $(shell pkg-config --cflags alsa)
4+
CFLAGS += $(shell pkg-config --cflags alsa) $(KHDR_INCLUDES)
55
LDLIBS += $(shell pkg-config --libs alsa)
66
ifeq ($(LDLIBS),)
77
LDLIBS += -lasound

0 commit comments

Comments
 (0)