diff --git a/openbsd-compat/mktemp.c b/openbsd-compat/mktemp.c index 4b13b9834..cca956a51 100644 --- a/openbsd-compat/mktemp.c +++ b/openbsd-compat/mktemp.c @@ -37,6 +37,7 @@ #ifdef mkstemp #undef mkstemp #endif +int mkstemp(char *); /* * From glibc man page: 'In glibc versions 2.06 and earlier, the file is diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index cc4cf2055..78faea962 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h @@ -142,6 +142,7 @@ char *mkdtemp(char *path); #endif #define mkstemp(x) _ssh_mkstemp(x) +int _ssh_mkstemp(char *); #ifndef HAVE_DAEMON int daemon(int nochdir, int noclose);