diff options
Diffstat (limited to 'tnftp.h')
-rw-r--r-- | tnftp.h | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -1,10 +1,11 @@ -/* $NetBSD: tnftp.h,v 1.33 2009/11/14 08:32:42 lukem Exp $ */ +/* $NetBSD: tnftp.h,v 1.35 2013/05/05 13:17:05 lukem Exp $ */ #define FTP_PRODUCT PACKAGE_NAME #define FTP_VERSION PACKAGE_VERSION #include "tnftp_config.h" +#include <assert.h> #include <stdio.h> #include <ctype.h> #include <errno.h> @@ -40,6 +41,9 @@ #if defined(HAVE_NETINET_IP_H) # include <netinet/ip.h> #endif +#if defined(HAVE_NETINET_TCP_H) +# include <netinet/tcp.h> +#endif #if defined(HAVE_NETDB_H) # if HAVE_DECL_AI_NUMERICHOST # include <netdb.h> @@ -93,6 +97,9 @@ #if defined(HAVE_LIMITS_H) # include <limits.h> #endif +#if defined(HAVE_LOCALE_H) +# include <locale.h> +#endif #if defined(HAVE_PWD_H) # include <pwd.h> #endif @@ -493,3 +500,15 @@ int utimes(const char *, const struct timeval *); #define getaddrinfo Rgetaddrinfo #define getipnodebyname Rgetipnodebyname #endif /* defined(USE_SOCKS) */ + + +/* + * Compatibility for stuff in NetBSD <sys/cdefs.h> + */ +#undef __dead +#define __dead + +#ifdef __UNCONST +#undef __UNCONST +#endif +#define __UNCONST(a) ((void *)(unsigned long)(const void *)(a)) |