Re: rawsock on windows

Sam Steingold <[email protected]>
Newsgroups gmane.lisp.clisp.devel
Message-ID <[email protected]>
> * Daniel Jour <[email protected]> [2016-08-31 13:57:12 +0200]:
>
>> Fine. This means that the change necessary for a release is actually
>> quite small:
>> [snip]
>> Right?
>
> Unfortunately it's not that easy: rawsock fails to build on Windows
> (MinGW) because the gnulib code (from core CLISP) is too old and makes
> a (now) false assumption about the internals of MinGW header files.
>
> Thus, the necessary changes are:
>
> 1) Either update gnulib for core CLISP, or give rawsock its own gnulib
>    (that's what I did and - due to the reasoning above - I'd argue
>    for)
>
> 2) Remove "windows" specific code from rawsock.c: The typedef,
>    including windows headers, the parts with #if defined(WIN32_NATIVE)
>
> At this point it will compile, but has reduced functionality, because
> gnulib has a (IMHO) design flaw: If there's no (for example) netdb.h,
> then the corresponding gnulib module provides one. But it does not
> #define HAVE_NETDB_H, thus our code would not use it (because of the
> #if defined(HAVE_NETDB_H) conditional source parts).

all you need to do is "#include <netdb.h>" unconditionally.
http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00338.html

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1404
http://www.childpsy.net/ http://camera.org http://jihadwatch.org
http://memri.org http://americancensorship.org http://www.dhimmitude.org
Why use Windows, when there are Doors?

------------------------------------------------------------------------------
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.