Yes, that fixed it. I'v filed this bug. 2011/5/30 Leif Hedstrom <zw...@apache.org>
> On 05/29/2011 11:53 AM, Conan wrote: > >> error when compile any plugins with tsxs: (test on ubuntu 10.04 32bit / >> mac >> os 10.6.7 64bit) >> >> /home/ts/ts-2.1.9/bin/tsxs -c hello.c -o hello.so >> compiling hello.c -> hello.lo >> In file included from hello.c:25: >> /home/ts/ts-2.1.9/include/ts/ts.h:616: error: expected >> specifier-qualifier-list before 'sockaddr_storage' >> Compile failed: gcc -I/home/ts/ts-2.1.9/include -march=i586 -g -pipe -Wall >> -Werror -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -fpic -c >> hello.c -o hello.lo >> > > Dang it. Can you please file a bug with this? I think the below ought to > fix this, when compiling C source. > > Thanks! > > -- Leif > > diff --git a/proxy/api/ts/ts.h.in b/proxy/api/ts/ts.h.in > index aabea4a..1f3c1f8 100644 > --- a/proxy/api/ts/ts.h.in > +++ b/proxy/api/ts/ts.h.in > @@ -613,7 +613,7 @@ extern "C" > { > const char* request; > int request_len; > - sockaddr_storage ip; > + struct sockaddr_storage ip; > int port; > TSCont contp; > TSFetchEvent events; > >