diff options
author | Colin Watson <cjwatson@debian.org> | 2007-06-12 11:03:36 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2007-06-12 11:03:36 +0000 |
commit | 086ea76990b1e6287c24b6db74adffd4605eb3b0 (patch) | |
tree | 4650093038f9f66b02823fb07f49d6a4becd1667 /openbsd-compat/bsd-snprintf.h | |
parent | 4ee72c71e31226c81743439fe1ed2b521b5ddb7e (diff) | |
parent | 3e2e0ac10674d77618c4c7339e18b83ced247492 (diff) |
Import OpenSSH 4.6p1.
Diffstat (limited to 'openbsd-compat/bsd-snprintf.h')
-rw-r--r-- | openbsd-compat/bsd-snprintf.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-snprintf.h b/openbsd-compat/bsd-snprintf.h new file mode 100644 index 000000000..002b764e3 --- /dev/null +++ b/openbsd-compat/bsd-snprintf.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* $Id: bsd-snprintf.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */ | ||
2 | |||
3 | #ifndef _BSD_SNPRINTF_H | ||
4 | #define _BSD_SNPRINTF_H | ||
5 | |||
6 | #include "config.h" | ||
7 | |||
8 | #include <sys/types.h> /* For size_t */ | ||
9 | |||
10 | #ifndef HAVE_SNPRINTF | ||
11 | int snprintf(char *str, size_t count, const char *fmt, ...); | ||
12 | #endif /* !HAVE_SNPRINTF */ | ||
13 | |||
14 | #ifndef HAVE_VSNPRINTF | ||
15 | int vsnprintf(char *str, size_t count, const char *fmt, va_list args); | ||
16 | #endif /* !HAVE_SNPRINTF */ | ||
17 | |||
18 | |||
19 | #endif /* _BSD_SNPRINTF_H */ | ||