]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsactl: fix compilation when building in a subdir
authorRudi Heitbaum <rudi@heitbaum.com>
Mon, 15 May 2023 16:27:59 +0000 (02:27 +1000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 30 Aug 2023 16:56:41 +0000 (18:56 +0200)
Fixes: 613372d
Fixes: cff2d1c
Compile errors when building in a subdir:
alsactl/alsactl.c:33:10: fatal error: os_compat.h: No such file or directory
   33 | #include "os_compat.h"
      |          ^~~~~~~~~~~~~
alsactl/lock.c:34:10: fatal error: os_compat.h: No such file or directory
   34 | #include "os_compat.h"
      |          ^~~~~~~~~~~~~

Fixes: https://github.com/alsa-project/alsa-utils/pull/213
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsactl/Makefile.am

index 80dba69d07a6dae6f96359a2f9fc093d166df52a..fb32c4f3a632ffb5d9aa21b0a7772debf7ca364f 100644 (file)
@@ -9,6 +9,8 @@ EXTRA_DIST=alsactl.1 alsactl_init.xml
 
 AM_CFLAGS = -D_GNU_SOURCE
 
+AM_CPPFLAGS = -I$(top_srcdir)/include
+
 alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c init_ucm.c \
                daemon.c monitor.c clean.c info.c