Andy Piper <andy(a)xemacs.org> writes:
At 08:46 PM 11/18/99 -0700, Ben Wing wrote:
>I say, put all the nt makefiles in the proper directories, not in nt.
>Windows is not a second-class citizen w.r.t. xemacs.
I agree, but this is not strictly true - the windows build uses its own
private versions of some header files and source files, noteably
config.h, so it is defintely not the same as all other builds.
Most of the stuff in nt/inc is empty, and only needed because certain parts
of the code unconditionally include things like netdb.h instead of wrapping
them in #ifdef HAVE_NETDB_H, and doing the appropriate autoconf checks.
sys/param.h can be removed and the definition of NBPG put in nt/config.h
sys/ioctl.h, netinet/in.h, arpa/inet.h, netdb.h, unistd.h can be completely
nuked
sys/time.h is probably doing the wrong thing. We should just include the
correct file under windows instead of creating our own prototypes for
struct timeval, etc.
sys/socket.h should just be nuked and all the checks for net-specific
errnos should be wrapped in a new macro. In some of our code we use
ISSOCKETERROR(var,ENOTCONN), on windows this expands the WSA stuff for
you.
-Bill P.