From b29ea913cdf6eb02cc4ccc4ce3371d678d1f562d Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sat, 15 Jan 2000 14:12:03 +1100 Subject: - Add --with-xauth-path configure directive and explicit test for /usr/openwin/bin/xauth for Solaris systems. Report from Anders Nordby - Fix incorrect detection of /dev/ptmx on Linux systems that lack openpty. Report from John Seifarth - Look for intXX_t and u_intXX_t in sys/bitypes.h if they are not in sys/types.h. Fixes problems on SCO, report from Gary E. Miller - Use __snprintf and __vnsprintf if they are found where snprintf and vnsprintf are lacking. Suggested by Ben Taylor and others. --- defines.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'defines.h') diff --git a/defines.h b/defines.h index d2f61e269..9c88f2e85 100644 --- a/defines.h +++ b/defines.h @@ -3,9 +3,13 @@ /* Necessary headers */ -#include /* For u_intXX_t */ +#include #include /* For SHUT_XXXX */ +#ifdef HAVE_SYS_BITYPES_H +# include /* For u_intXX_t */ +#endif + #ifdef HAVE_PATHS_H # include /* For _PATH_XXX */ #endif @@ -232,4 +236,13 @@ typedef unsigned int size_t; # define PAM_STRERROR(a,b) pam_strerror((a),(b)) #endif +/* Solaris doesn't have a public [v]snprintf() function, but it has */ +/* __[v]snprintf() */ +#if !defined(HAVE_SNPRINTF) && defined(HAVE___SNPRINTF) +# define snprintf __snprintf +#endif /* !defined(HAVE_SNPRINTF) && defined(HAVE___SNPRINTF) */ +#if !defined(HAVE_VSNPRINTF) && defined(HAVE___VSNPRINTF) +# define vsnprintf __vsnprintf +#endif /* !defined(HAVE_VSNPRINTF) && defined(HAVE___VSNPRINTF) */ + #endif /* _DEFINES_H */ -- cgit v1.2.3