Mercurial > dropbear
diff includes.h @ 118:5312ca05ed48 private-rez
propagate of 717950f4061f1123659ee87c7c168805af920ab7 and 839f98f136788cc1466e4641bf796f96040a085d from branch 'matt.dbclient.authpam' to 'matt.dbclient.rez'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 12 Sep 2004 04:56:50 +0000 |
parents | 10f4d3319780 |
children | 9a1dc9bc17d7 |
line wrap: on
line diff
--- a/includes.h Sun Aug 08 16:57:37 2004 +0000 +++ b/includes.h Sun Sep 12 04:56:50 2004 +0000 @@ -38,7 +38,6 @@ #include <sys/time.h> #include <sys/un.h> #include <sys/wait.h> -#include <sys/dir.h> #include <stdio.h> #include <errno.h> @@ -56,6 +55,7 @@ #include <netdb.h> #include <ctype.h> #include <stdarg.h> +#include <dirent.h> #include <arpa/inet.h> @@ -111,14 +111,11 @@ #include <libgen.h> #endif -#ifdef HAVE_SYS_DIRENT_H -#include <sys/dirent.h> -#endif - #include "libtomcrypt/mycrypt_custom.h" #include "libtommath/tommath.h" #include "compat.h" +#include "fake-rfc2553.h" #ifndef HAVE_UINT16_T #ifndef HAVE_U_INT16_T @@ -131,4 +128,14 @@ #define LOG_AUTHPRIV LOG_AUTH #endif +/* so we can avoid warnings about unused params (ie in signal handlers etc) */ +#ifdef UNUSED +#elif defined(__GNUC__) +# define UNUSED(x) UNUSED_ ## x __attribute__((unused)) +#elif defined(__LCLINT__) +# define UNUSED(x) /*@unused@*/ x +#else +# define UNUSED(x) x +#endif + #endif /* _INCLUDES_H_ */