From 4cb92d0adf855de5082d0b7c7b5126619b9bec6a Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Thu, 6 Feb 1997 02:20:05 +0000 Subject: [PATCH] INTERFACE is no longer defined in krb5.h, so we must define it here git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9786 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/kerberosIV/krb.h | 39 ++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/src/include/kerberosIV/krb.h b/src/include/kerberosIV/krb.h index 8af0e740d..f63342e5f 100644 --- a/src/include/kerberosIV/krb.h +++ b/src/include/kerberosIV/krb.h @@ -27,6 +27,30 @@ #ifndef KRB_DEFS #define KRB_DEFS +#if defined(_WIN32) && !defined(_WINDOWS) +#define _WINDOWS +#endif + +#if defined(_WINDOWS) +#include +#endif + +/* Windows declarations */ +#ifndef KRB5_CALLCONV +#define KRB5_CALLCONV +#define KRB5_CALLCONV_C +#define KRB5_DLLIMP +#endif +#ifndef FAR +#define FAR +#define NEAR +#endif + +#ifndef INTERFACE +#define INTERFACE KRB5_CALLCONV +#endif + + /* Need some defs from des.h */ #include @@ -394,8 +418,6 @@ char *tkt_string(); #endif /* ATHENA_COMPAT */ /* until we do V4 compat under DOS, just turn this off */ -#define INTERFACE -#define FAR #define _fmemcpy memcpy #define _fstrncpy strncpy #define far_fputs fputs @@ -415,7 +437,9 @@ char *tkt_string(); /* If this source file requires it, define struct sockaddr_in (and possibly other things related to network I/O). FIXME. */ -#ifdef DEFINE_SOCKADDR +#if defined(DEFINE_SOCKADDR) + +#if !defined(_WINDOWS) #include /* For struct sockaddr_in and in_addr */ #include /* For inet_ntoa */ #include /* For struct hostent, gethostbyname, etc */ @@ -425,12 +449,19 @@ char *tkt_string(); #ifdef NEED_TIME_H #include /* For localtime, etc */ #endif +#endif /* !_WINDOWS */ + +#ifndef INVALID_SOCKET +#define INVALID_SOCKET (-1) #endif + +#endif /* DEFINE_SOCKADDR */ + + /* * Compatability with WinSock calls on MS-Windows... */ #define SOCKET unsigned int -#define INVALID_SOCKET ((SOCKET)~0) #define closesocket close #define ioctlsocket ioctl #define SOCKET_ERROR (-1) -- 2.26.2