From 78315eb6d6bf411b07d9e0bc1ede41fae9484f25 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 29 Sep 2000 23:01:36 +1100 Subject: - (djm) Merged big SCO portability patch from Tim Rice --- defines.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'defines.h') diff --git a/defines.h b/defines.h index a8e2659c..323ff29b 100644 --- a/defines.h +++ b/defines.h @@ -11,10 +11,12 @@ #include /* For [u]intxx_t */ #include /* For SHUT_XXXX */ #include /* For MAXPATHLEN */ -#include /* For SUN_LEN */ #include /* For typedefs */ #include /* For IPv6 macros */ #include /* For IPTOS macros */ +#ifdef HAVE_SYS_UN_H +# include /* For SUN_LEN */ +#endif #ifdef HAVE_SYS_BITYPES_H # include /* For u_intXX_t */ #endif @@ -44,6 +46,7 @@ #endif #include /* For STDIN_FILENO, etc */ +#include /* 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 -- cgit v1.2.3