diff options
author | Damien Miller <djm@mindrot.org> | 2000-01-15 14:12:03 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-01-15 14:12:03 +1100 |
commit | b29ea913cdf6eb02cc4ccc4ce3371d678d1f562d (patch) | |
tree | a525ee7b8e8e173babe1936d65138ec3a6392293 /defines.h | |
parent | 34132e54cbd221d17d373fc54f4e3f7b85727f7f (diff) |
- Add --with-xauth-path configure directive and explicit test for
/usr/openwin/bin/xauth for Solaris systems. Report from Anders
Nordby <anders@fix.no>
- Fix incorrect detection of /dev/ptmx on Linux systems that lack
openpty. Report from John Seifarth <john@waw.be>
- 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
<gem@rellim.com>
- Use __snprintf and __vnsprintf if they are found where snprintf and
vnsprintf are lacking. Suggested by Ben Taylor <bent@shell.clark.net>
and others.
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -3,9 +3,13 @@ /* Necessary headers */ -#include <sys/types.h> /* For u_intXX_t */ +#include <sys/types.h> #include <sys/socket.h> /* For SHUT_XXXX */ +#ifdef HAVE_SYS_BITYPES_H +# include <sys/bitypes.h> /* For u_intXX_t */ +#endif + #ifdef HAVE_PATHS_H # include <paths.h> /* 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 */ |