summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-01-15 14:12:03 +1100
committerDamien Miller <djm@mindrot.org>2000-01-15 14:12:03 +1100
commitb29ea913cdf6eb02cc4ccc4ce3371d678d1f562d (patch)
treea525ee7b8e8e173babe1936d65138ec3a6392293 /defines.h
parent34132e54cbd221d17d373fc54f4e3f7b85727f7f (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.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index d2f61e269..9c88f2e85 100644
--- a/defines.h
+++ b/defines.h
@@ -3,9 +3,13 @@
3 3
4/* Necessary headers */ 4/* Necessary headers */
5 5
6#include <sys/types.h> /* For u_intXX_t */ 6#include <sys/types.h>
7#include <sys/socket.h> /* For SHUT_XXXX */ 7#include <sys/socket.h> /* For SHUT_XXXX */
8 8
9#ifdef HAVE_SYS_BITYPES_H
10# include <sys/bitypes.h> /* For u_intXX_t */
11#endif
12
9#ifdef HAVE_PATHS_H 13#ifdef HAVE_PATHS_H
10# include <paths.h> /* For _PATH_XXX */ 14# include <paths.h> /* For _PATH_XXX */
11#endif 15#endif
@@ -232,4 +236,13 @@ typedef unsigned int size_t;
232# define PAM_STRERROR(a,b) pam_strerror((a),(b)) 236# define PAM_STRERROR(a,b) pam_strerror((a),(b))
233#endif 237#endif
234 238
239/* Solaris doesn't have a public [v]snprintf() function, but it has */
240/* __[v]snprintf() */
241#if !defined(HAVE_SNPRINTF) && defined(HAVE___SNPRINTF)
242# define snprintf __snprintf
243#endif /* !defined(HAVE_SNPRINTF) && defined(HAVE___SNPRINTF) */
244#if !defined(HAVE_VSNPRINTF) && defined(HAVE___VSNPRINTF)
245# define vsnprintf __vsnprintf
246#endif /* !defined(HAVE_VSNPRINTF) && defined(HAVE___VSNPRINTF) */
247
235#endif /* _DEFINES_H */ 248#endif /* _DEFINES_H */