[PATCH 2/2] modules: Don't deprecate module-detect on non-Linux systems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2016-04-22 at 21:51 +0200, Ahmed S. Darwish wrote:
> The advertised alternative, module-udev-detect, is Linux-specific.
> 
> BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=94339
> Signed-off-by: Ahmed S. Darwish <darwish.07 at gmail.com>
> ---
>  src/modules/module-detect.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/modules/module-detect.c b/src/modules/module-detect.c
> index a9a2de0..d6c6b76 100644
> --- a/src/modules/module-detect.c
> +++ b/src/modules/module-detect.c
> @@ -46,7 +46,10 @@ PA_MODULE_DESCRIPTION("Detect available audio hardware and load matching drivers
>  PA_MODULE_VERSION(PACKAGE_VERSION);
>  PA_MODULE_LOAD_ONCE(true);
>  PA_MODULE_USAGE("just-one=");
> +
> +#ifdef __linux__
>  PA_MODULE_DEPRECATED("Please use module-udev-detect instead of module-detect!");
> +#endif
>  
>  static const char* const valid_modargs[] = {
>      "just-one",

Thanks, applied.

-- 
Tanu


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux