Unifdef ISC

This commit is contained in:
Adam Jackson 2008-10-02 17:03:54 -04:00
parent b1a3173473
commit f836e1f11b
15 changed files with 4 additions and 49 deletions

View File

@ -50,7 +50,7 @@
#ifdef SVR4 #ifdef SVR4
#include <sys/sysmacros.h> #include <sys/sysmacros.h>
#endif #endif
#if defined(ISC) || defined(__CYGWIN__) || defined(__SCO__) #if defined(__CYGWIN__) || defined(__SCO__)
#include <sys/param.h> #include <sys/param.h>
#include <sys/sysmacros.h> #include <sys/sysmacros.h>
#endif #endif

0
damageext/damageext.c Executable file → Normal file
View File

View File

@ -52,8 +52,6 @@
#define OSNAME "hurd" #define OSNAME "hurd"
#elif defined(__SCO__) #elif defined(__SCO__)
#define OSNAME "sco" #define OSNAME "sco"
#elif defined(ISC)
#define OSNAME "isc"
#elif defined(SVR4) && defined(sun) #elif defined(SVR4) && defined(sun)
#define OSNAME "solaris" #define OSNAME "solaris"
#elif defined(SVR5) #elif defined(SVR5)

View File

@ -98,16 +98,10 @@
# include <termio.h> # include <termio.h>
# include <sys/stat.h> # include <sys/stat.h>
# include <sys/types.h> # include <sys/types.h>
# if defined(__SCO__) || defined(ISC) # if defined(__SCO__)
# include <sys/param.h> # include <sys/param.h>
# endif # endif
# ifdef ISC
# define TIOCMSET (TIOC|26) /* set all modem bits */
# define TIOCMBIS (TIOC|27) /* bis modem bits */
# define TIOCMBIC (TIOC|28) /* bic modem bits */
# define TIOCMGET (TIOC|29) /* get all modem bits */
# endif
# include <errno.h> # include <errno.h>
@ -203,10 +197,6 @@
# define POSIX_TTY # define POSIX_TTY
# endif /* SVR4 */ # endif /* SVR4 */
# ifdef ISC
# include <termios.h>
# define POSIX_TTY
# endif
# if defined(sun) && (defined (__i386__) || defined(__i386)) && defined (SVR4) && !defined(__SOL8__) # if defined(sun) && (defined (__i386__) || defined(__i386)) && defined (SVR4) && !defined(__SOL8__)
# define USE_VT_SYSREQ # define USE_VT_SYSREQ
@ -446,12 +436,6 @@
# endif /* MAXPATHLEN */ # endif /* MAXPATHLEN */
#endif /* !PATH_MAX */ #endif /* !PATH_MAX */
#if defined(ISC)
#define rint(x) RInt(x)
double RInt(
double x
);
#endif
#ifndef DEV_MEM #ifndef DEV_MEM
#define DEV_MEM "/dev/mem" #define DEV_MEM "/dev/mem"

0
hw/xwin/winmessages.h Executable file → Normal file
View File

0
miext/damage/damage.c Executable file → Normal file
View File

0
miext/damage/damage.h Executable file → Normal file
View File

0
miext/damage/damagestr.h Executable file → Normal file
View File

View File

@ -80,7 +80,7 @@ SOFTWARE.
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <ctype.h> #include <ctype.h>
#if defined(TCPCONN) || defined(STREAMSCONN) || defined(ISC) || defined(__SCO__) #if defined(TCPCONN) || defined(STREAMSCONN) || defined(__SCO__)
#include <netinet/in.h> #include <netinet/in.h>
#endif /* TCPCONN || STREAMSCONN || ISC || __SCO__ */ #endif /* TCPCONN || STREAMSCONN || ISC || __SCO__ */
#ifdef DNETCONN #ifdef DNETCONN
@ -100,10 +100,6 @@ SOFTWARE.
#endif #endif
#if defined(SYSV) && defined(__i386__) #if defined(SYSV) && defined(__i386__)
# include <sys/stream.h> # include <sys/stream.h>
# ifdef ISC
# include <sys/stropts.h>
# include <sys/sioctl.h>
# endif /* ISC */
#endif #endif
#ifdef __GNU__ #ifdef __GNU__
#undef SIOCGIFCONF #undef SIOCGIFCONF
@ -283,7 +279,7 @@ AccessUsingXdmcp (void)
} }
#if ( defined(SVR4) && !defined(SCO325) && !defined(sun) || defined(ISC)) && defined(SIOCGIFCONF) && !defined(USE_SIOCGLIFCONF) #if defined(SVR4) && !defined(SCO325) && !defined(sun) && defined(SIOCGIFCONF) && !defined(USE_SIOCGLIFCONF)
/* Deal with different SIOCGIFCONF ioctl semantics on these OSs */ /* Deal with different SIOCGIFCONF ioctl semantics on these OSs */
@ -300,17 +296,6 @@ ifioctl (int fd, int cmd, char *arg)
{ {
ioc.ic_len = ((struct ifconf *) arg)->ifc_len; ioc.ic_len = ((struct ifconf *) arg)->ifc_len;
ioc.ic_dp = ((struct ifconf *) arg)->ifc_buf; ioc.ic_dp = ((struct ifconf *) arg)->ifc_buf;
#ifdef ISC
/* SIOCGIFCONF is somewhat brain damaged on ISC. The argument
* buffer must contain the ifconf structure as header. Ifc_req
* is also not a pointer but a one element array of ifreq
* structures. On return this array is extended by enough
* ifreq fields to hold all interfaces. The return buffer length
* is placed in the buffer header.
*/
((struct ifconf *) ioc.ic_dp)->ifc_len =
ioc.ic_len - sizeof(struct ifconf);
#endif
} }
else else
{ {
@ -321,14 +306,6 @@ ifioctl (int fd, int cmd, char *arg)
if (ret >= 0 && cmd == SIOCGIFCONF) if (ret >= 0 && cmd == SIOCGIFCONF)
#ifdef SVR4 #ifdef SVR4
((struct ifconf *) arg)->ifc_len = ioc.ic_len; ((struct ifconf *) arg)->ifc_len = ioc.ic_len;
#endif
#ifdef ISC
{
((struct ifconf *) arg)->ifc_len =
((struct ifconf *)ioc.ic_dp)->ifc_len;
((struct ifconf *) arg)->ifc_buf =
(caddr_t)((struct ifconf *)ioc.ic_dp)->ifc_req;
}
#endif #endif
return(ret); return(ret);
} }
@ -609,11 +586,7 @@ DefineSelf (int fd)
ifc.ifc_buf = bufptr; ifc.ifc_buf = bufptr;
#define IFC_IOCTL_REQ SIOCGIFCONF #define IFC_IOCTL_REQ SIOCGIFCONF
#ifdef ISC
#define IFC_IFC_REQ (struct ifreq *) ifc.ifc_buf
#else
#define IFC_IFC_REQ ifc.ifc_req #define IFC_IFC_REQ ifc.ifc_req
#endif /* ISC */
#define IFC_IFC_LEN ifc.ifc_len #define IFC_IFC_LEN ifc.ifc_len
#define IFR_IFR_ADDR ifr->ifr_addr #define IFR_IFR_ADDR ifr->ifr_addr
#define IFR_IFR_NAME ifr->ifr_name #define IFR_IFR_NAME ifr->ifr_name

0
xfixes/cursor.c Executable file → Normal file
View File

0
xfixes/saveset.c Executable file → Normal file
View File

0
xfixes/select.c Executable file → Normal file
View File

0
xfixes/xfixes.c Executable file → Normal file
View File

0
xfixes/xfixes.h Executable file → Normal file
View File

0
xfixes/xfixesint.h Executable file → Normal file
View File