meson: fix build with missing libudev-devel

This commit is contained in:
Wim Taymans 2024-01-26 13:28:07 +01:00
parent cb2b7af8fd
commit b4c7973d49
7 changed files with 28 additions and 9 deletions

View file

@ -40,8 +40,13 @@ int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t
*factory = &spa_alsa_sink_factory;
break;
case 2:
#ifdef HAVE_LIBUDEV
*factory = &spa_alsa_udev_factory;
break;
#else
(*index)++;
SPA_FALLTHROUGH;
#endif
case 3:
*factory = &spa_alsa_pcm_device_factory;
break;