diff options
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/mktemp.c | 4 | ||||
-rw-r--r-- | openbsd-compat/mktemp.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/openbsd-compat/mktemp.c b/openbsd-compat/mktemp.c index d256ee448..c951050c0 100644 --- a/openbsd-compat/mktemp.c +++ b/openbsd-compat/mktemp.c | |||
@@ -36,7 +36,7 @@ | |||
36 | 36 | ||
37 | #include "includes.h" | 37 | #include "includes.h" |
38 | 38 | ||
39 | #ifndef HAVE_MKDTEMP | 39 | #if !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP) |
40 | 40 | ||
41 | #if defined(LIBC_SCCS) && !defined(lint) | 41 | #if defined(LIBC_SCCS) && !defined(lint) |
42 | static char rcsid[] = "$OpenBSD: mktemp.c,v 1.16 2002/05/27 18:20:45 millert Exp $"; | 42 | static char rcsid[] = "$OpenBSD: mktemp.c,v 1.16 2002/05/27 18:20:45 millert Exp $"; |
@@ -181,4 +181,4 @@ _gettemp(path, doopen, domkdir, slen) | |||
181 | /*NOTREACHED*/ | 181 | /*NOTREACHED*/ |
182 | } | 182 | } |
183 | 183 | ||
184 | #endif /* !HAVE_MKDTEMP */ | 184 | #endif /* !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP) */ |
diff --git a/openbsd-compat/mktemp.h b/openbsd-compat/mktemp.h index 6a96f6fa6..505ca6a1f 100644 --- a/openbsd-compat/mktemp.h +++ b/openbsd-compat/mktemp.h | |||
@@ -1,13 +1,13 @@ | |||
1 | /* $Id: mktemp.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */ | 1 | /* $Id: mktemp.h,v 1.3 2003/01/07 04:18:33 djm Exp $ */ |
2 | 2 | ||
3 | #ifndef _BSD_MKTEMP_H | 3 | #ifndef _BSD_MKTEMP_H |
4 | #define _BSD_MKTEMP_H | 4 | #define _BSD_MKTEMP_H |
5 | 5 | ||
6 | #include "config.h" | 6 | #include "config.h" |
7 | #ifndef HAVE_MKDTEMP | 7 | #if !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP) |
8 | int mkstemps(char *path, int slen); | 8 | int mkstemps(char *path, int slen); |
9 | int mkstemp(char *path); | 9 | int mkstemp(char *path); |
10 | char *mkdtemp(char *path); | 10 | char *mkdtemp(char *path); |
11 | #endif /* !HAVE_MKDTEMP */ | 11 | #endif /* !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP) */ |
12 | 12 | ||
13 | #endif /* _BSD_MKTEMP_H */ | 13 | #endif /* _BSD_MKTEMP_H */ |