[PATCH] owusbprobe: disable if !OW_USB

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] owusbprobe: disable if !OW_USB

Arnout Vandecappelle (Essensium/Mind)
Commit 21a57564b removed the OW_USB condition in owusbprobe. This
causes the build to fail if libusb is not available or --disable-libusb
was given.

Therefore, re-insert the condition.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[hidden email]>
Cc: Johan Ström <[hidden email]>
---
 module/owshell/src/c/owusbprobe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/owshell/src/c/owusbprobe.c b/module/owshell/src/c/owusbprobe.c
index 93a344e..5d72653 100644
--- a/module/owshell/src/c/owusbprobe.c
+++ b/module/owshell/src/c/owusbprobe.c
@@ -33,7 +33,7 @@
 
 #define log(msg, args...) fprintf(stdout, msg"\n", ##args)
 
-#if 1 || OW_USB
+#if OW_USB
 
 #if defined(__FreeBSD__)
 #define TTY_EXAMPLE "/dev/cuaUx"
--
2.7.0


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Owfs-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] owusbprobe: disable if !OW_USB

Johan Ström-3
Thanks for notice, master is now fixed!

On 15/03/16 23:59, Arnout Vandecappelle (Essensium/Mind) wrote:

> Commit 21a57564b removed the OW_USB condition in owusbprobe. This
> causes the build to fail if libusb is not available or --disable-libusb
> was given.
>
> Therefore, re-insert the condition.
>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[hidden email]>
> Cc: Johan Ström <[hidden email]>
> ---
>  module/owshell/src/c/owusbprobe.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/module/owshell/src/c/owusbprobe.c b/module/owshell/src/c/owusbprobe.c
> index 93a344e..5d72653 100644
> --- a/module/owshell/src/c/owusbprobe.c
> +++ b/module/owshell/src/c/owusbprobe.c
> @@ -33,7 +33,7 @@
>  
>  #define log(msg, args...) fprintf(stdout, msg"\n", ##args)
>  
> -#if 1 || OW_USB
> +#if OW_USB
>  
>  #if defined(__FreeBSD__)
>  #define TTY_EXAMPLE "/dev/cuaUx"


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Owfs-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/owfs-developers