diff options
author | Damien Miller <djm@mindrot.org> | 2000-09-29 23:01:36 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-09-29 23:01:36 +1100 |
commit | 78315eb6d6bf411b07d9e0bc1ede41fae9484f25 (patch) | |
tree | 6c1ff91e092df4d86b076f7f4917764bb6d17f5e /defines.h | |
parent | cb5e44a440c1b310a9dc5b8b5abe32fe11ed479b (diff) |
- (djm) Merged big SCO portability patch from Tim Rice
<tim@multitalents.net>
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -11,10 +11,12 @@ #include <sys/types.h> /* For [u]intxx_t */ #include <sys/socket.h> /* For SHUT_XXXX */ #include <sys/param.h> /* For MAXPATHLEN */ -#include <sys/un.h> /* For SUN_LEN */ #include <netinet/in_systm.h> /* For typedefs */ #include <netinet/in.h> /* For IPv6 macros */ #include <netinet/ip.h> /* For IPTOS macros */ +#ifdef HAVE_SYS_UN_H +# include <sys/un.h> /* For SUN_LEN */ +#endif #ifdef HAVE_SYS_BITYPES_H # include <sys/bitypes.h> /* For u_intXX_t */ #endif @@ -44,6 +46,7 @@ #endif #include <unistd.h> /* For STDIN_FILENO, etc */ +#include <termios.h> /* Struct winsize */ /* Constants */ @@ -219,6 +222,23 @@ typedef int mode_t; # define ss_family __ss_family #endif /* !defined(HAVE_SS_FAMILY_IN_SS) && defined(HAVE_SA_FAMILY_IN_SS) */ +#ifndef HAVE_SYS_UN_H +struct sockaddr_un { + short sun_family; /* AF_UNIX */ + char sun_path[108]; /* path name (gag) */ +}; +#endif /* HAVE_SYS_UN_H */ + +#if defined(BROKEN_SYS_TERMIO_H) && !defined(_STRUCT_WINSIZE) +#define _STRUCT_WINSIZE +struct winsize { + unsigned short ws_row; /* rows, in characters */ + unsigned short ws_col; /* columns, in character */ + unsigned short ws_xpixel; /* horizontal size, pixels */ + unsigned short ws_ypixel; /* vertical size, pixels */ +}; +#endif + /* Paths */ #ifndef _PATH_BSHELL |