Patrick Williams | b542dec | 2023-06-09 01:26:37 -0500 | [diff] [blame] | 1 | From 44636a7c5862538def0d2fac074772cc39a22a15 Mon Sep 17 00:00:00 2001 |
| 2 | From: Rudi Heitbaum <rudi@heitbaum.com> |
| 3 | Date: Tue, 16 May 2023 02:27:59 +1000 |
| 4 | Subject: [PATCH] alsactl: fix compilation when building in a subdir |
| 5 | |
| 6 | Fixes: 613372d |
| 7 | Fixes: cff2d1c |
| 8 | |
| 9 | Compile errors when building in a subdir: |
| 10 | alsactl/alsactl.c:33:10: fatal error: os_compat.h: No such file or directory |
| 11 | 33 | #include "os_compat.h" |
| 12 | | ^~~~~~~~~~~~~ |
| 13 | alsactl/lock.c:34:10: fatal error: os_compat.h: No such file or directory |
| 14 | 34 | #include "os_compat.h" |
| 15 | | ^~~~~~~~~~~~~ |
| 16 | |
| 17 | Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com> |
| 18 | Upstream-Status: Submitted [https://github.com/alsa-project/alsa-utils/pull/213] |
| 19 | --- |
| 20 | alsactl/Makefile.am | 2 ++ |
| 21 | 1 file changed, 2 insertions(+) |
| 22 | |
| 23 | diff --git a/alsactl/Makefile.am b/alsactl/Makefile.am |
| 24 | index 80dba69d..fb32c4f3 100644 |
| 25 | --- a/alsactl/Makefile.am |
| 26 | +++ b/alsactl/Makefile.am |
| 27 | @@ -9,6 +9,8 @@ EXTRA_DIST=alsactl.1 alsactl_init.xml |
| 28 | |
| 29 | AM_CFLAGS = -D_GNU_SOURCE |
| 30 | |
| 31 | +AM_CPPFLAGS = -I$(top_srcdir)/include |
| 32 | + |
| 33 | alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c init_ucm.c \ |
| 34 | daemon.c monitor.c clean.c info.c |
| 35 | |