diff options
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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 */ |