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 <[email protected]> Reviewed-by: Muhammad Usama Anjum <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 1613e60 commit 2032e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)