Hi Stef, I can confirm that your "patch" is working with my ppa.
@Klaus: Please patch pieusb.c. Many thanks for your help. Cheers, Rolf Am 15.09.2015 um 06:40 schrieb Stef: > On 15/09/2015 04:08, m. allan noah wrote: >> Looks like the pieusb backend needs an update, strdup is not ansi C, >> AFAIK. >> >> allan > > Hello, > > we need to do this include _first_ to get the correct 'magic': > > #include "../include/sane/config.h" > > with that pieusb.c compiles with strdup like other backends. > > Regards, > Stef > > >
--- ./pieusb.c 2015-09-16 08:48:31.595901930 +0200 +++ ../sane-backends/backend/pieusb.c 2015-09-16 08:50:44.533149481 +0200 @@ -58,6 +58,9 @@ * * --------------------------------------------------------------------------*/ +/* Configuration defines */ +#include "../include/sane/config.h" + /* Standard includes for various utiliy functions */ #include <stdio.h> /* for FILE */ #include <string.h> /* for strlen */ @@ -65,9 +68,6 @@ #include <stdint.h> #include <math.h> -/* Configuration defines */ -#include "../include/sane/config.h" - /* SANE includes */ #include "../include/sane/sane.h" #include "../include/sane/saneopts.h"
-- sane-devel mailing list: [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to [email protected]
