Re: pil21 + OpenBSD
Hi Frithjof, > Thanks, works fine. Great! :) > The Makefile still needs some modifications, but I don't think that > introducing > more complexity there would be the right thing. Yes, let's keep it simple. The Makefile would need a lot more variations to be completely general, and is easier to adapt for specific cases than the source files. ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
unsubscribe
unsubscribe
Good bye Jimmie Houchin :-( You are now unsubscribed unsubscribe -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: pil21 + OpenBSD
On Wed Dec 22, 2021 at 5:32 PM CET, Alexander Burger wrote: > I've included your patch, and released a new pil21 (version 21.12.22). > Can you > check when you have time? Thanks, works fine. $ pil @lib/xhtml.l @lib/http.l --server and $ bin/httpGate $ echo $? 0 $ curl localhost:/server.l Hello Hello World! The Makefile still needs some modifications, but I don't think that introducing more complexity there would be the right thing. Cheers, Frithjof -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: pil21 + OpenBSD
Hi Frithjof, > attached is a small patch to make httpGate work on OpenBSD (IPV6 only). > Tested successfully. Cool, thanks a lot! I've included your patch, and released a new pil21 (version 21.12.22). Can you check when you have time? ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: pil21 + OpenBSD
Hi Alex, hi Mike, attached is a small patch to make httpGate work on OpenBSD (IPV6 only). Tested successfully. diff --git a/src/httpGate.c b/src/httpGate.c index dc8b58d..6c4f2be 100644 --- a/src/httpGate.c +++ b/src/httpGate.c @@ -232,8 +232,10 @@ static int gatePort(unsigned short port) { if ((sd = socket(AF_INET6, SOCK_STREAM, 0)) < 0) exit(1); n = 0; +#ifndef __OpenBSD__ if (setsockopt(sd, IPPROTO_IPV6, IPV6_V6ONLY, , sizeof(n)) < 0) exit(1); +#endif memset(, 0, sizeof(addr)); addr.sin6_family = AF_INET6; addr.sin6_addr = in6addr_any; Cheers, Frithjof On Tue Mar 9, 2021 at 4:26 PM CET, Alexander Burger wrote: > Hi Mike, > > > I have successfully compiled and run tests for pil21 on openbsd 6.8 > > Documentation and full system portability is a question of future research. > > > > $ pil + > > : (version) > > 21.3.5 > > -> (21 3 5) > > : (call 'uname '-a) > > OpenBSD openbsd.localdomain 6.8 GENERIC.MP#5 amd64 > > : (** 2 222) > > -> 673998787659948666753771754907668409286105635143120275902562304 > > Cool, good news! Thanks a lot! > > ☺/ A!ex > > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe