diff options
Diffstat (limited to 'crypto/heimdal/lib/roken/ifaddrs.hin')
-rw-r--r-- | crypto/heimdal/lib/roken/ifaddrs.hin | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/crypto/heimdal/lib/roken/ifaddrs.hin b/crypto/heimdal/lib/roken/ifaddrs.hin index d2b9be8ccc6d..0951c8cbc1b2 100644 --- a/crypto/heimdal/lib/roken/ifaddrs.hin +++ b/crypto/heimdal/lib/roken/ifaddrs.hin @@ -31,11 +31,19 @@ * SUCH DAMAGE. */ -/* $Id: ifaddrs.hin,v 1.3 2000/12/11 00:01:13 assar Exp $ */ +/* $Id: ifaddrs.hin 19309 2006-12-11 18:58:15Z lha $ */ #ifndef __ifaddrs_h__ #define __ifaddrs_h__ +#ifndef ROKEN_LIB_FUNCTION +#ifdef _WIN32 +#define ROKEN_LIB_FUNCTION _stdcall +#else +#define ROKEN_LIB_FUNCTION +#endif +#endif + /* * the interface is defined in terms of the fields below, and this is * sometimes #define'd, so there seems to be no simple way of solving @@ -57,8 +65,13 @@ struct ifaddrs { #define ifa_broadaddr ifa_dstaddr #endif -int getifaddrs(struct ifaddrs**); +int ROKEN_LIB_FUNCTION +rk_getifaddrs(struct ifaddrs**); + +void ROKEN_LIB_FUNCTION +rk_freeifaddrs(struct ifaddrs*); -void freeifaddrs(struct ifaddrs*); +#define getifaddrs(a) rk_getifaddrs(a) +#define freeifaddrs(a) rk_freeifaddrs(a) #endif /* __ifaddrs_h__ */ |