From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Buettner To: Eli Zaretskii , gdb@sources.redhat.com Subject: Re: DOS/Windows-specific code: sparcl-tdep.c Date: Tue, 08 May 2001 23:47:00 -0000 Message-id: <1010509064701.ZM22259@ocotillo.lan> References: <20010503211502.21716.qmail@web6401.mail.yahoo.com> <3AF1DAA0.3060702@cygnus.com> <200105071609.TAA24129@is.elta.co.il> <200105081149.OAA06265@is.elta.co.il> X-SW-Source: 2001-05/msg00167.html On May 8, 2:49pm, Eli Zaretskii wrote: > * sparcl-tdep.c: > > #if (!defined(__GO32__) && !defined(_WIN32)) || defined(__CYGWIN32__) > #define HAVE_SOCKETS > #include > #include > #include > #include > #endif > > Looks like an Autoconf test for HAVE_SOCKETS should do here. Why not just add an autoconf test for the sys/socket.h header file and then do: #ifdef HAVE_SYS_SOCKET_H #define HAVE_SOCKETS #include #include #include #include #endif ? (If you wanted to be paranoid you could test for some of the other header files as well.) Kevin