$NetBSD$ --- src/external/heimdal/roken/roken.h.in.orig 2018-05-07 18:33:23.000000000 +0000 +++ src/external/heimdal/roken/roken.h.in @@ -268,6 +268,7 @@ struct sockaddr_dl; #define rk_PATH_DELIM '\\' #endif +#ifndef _KERNEL #ifndef HAVE_SSIZE_T #ifndef SSIZE_T_DEFINED #ifdef ssize_t @@ -281,6 +282,7 @@ typedef int ssize_t; #define SSIZE_T_DEFINED #endif /* SSIZE_T_DEFINED */ #endif /* HAVE_SSIZE_T */ +#endif #include @@ -654,6 +656,7 @@ ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL se #endif #ifndef HAVE_LSTAT +struct stat; #define lstat rk_lstat ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL lstat(const char *, struct stat *); #endif @@ -729,6 +732,7 @@ ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL ge #endif #ifndef HAVE_WRITEV +struct iovec; #define writev rk_writev ROKEN_LIB_FUNCTION ssize_t ROKEN_LIB_CALL writev(int, const struct iovec *, int); @@ -787,6 +791,7 @@ int rk_flock(int fd, int operation); #endif #endif +struct tm; ROKEN_LIB_FUNCTION time_t ROKEN_LIB_CALL tm2time (struct tm, int); ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL unix_verify_user(char *, char *); @@ -928,6 +933,7 @@ struct addrinfo { }; #endif +struct addrinfo; #ifndef HAVE_GETADDRINFO #define getaddrinfo rk_getaddrinfo ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL