Add prototypes for mkstemp replacements.

Should prevent warnings due to our wrapper function.
This commit is contained in:
Darren Tucker 2023-03-10 14:46:57 +11:00
parent 4e04d68d6a
commit bf4dae0ad1
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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);