1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

MS-Windows followup to last commit.

lib-src/ntlib.h: Include fcntl.h.
 (mkostemp): Declare prototype.
 (mktemp): Don't redefine.
 lib-src/ntlib.c (mkostemp): New function.

Fixes: debbugs:15015
This commit is contained in:
Eli Zaretskii 2013-08-04 20:52:25 +03:00
parent e0fdb69430
commit e443729d65
3 changed files with 65 additions and 2 deletions

View file

@ -22,6 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
/* Include these headers now so we don't have to worry about include
order dependencies in common source files. */
#include <direct.h>
#include <fcntl.h>
#include <io.h>
#include <stdio.h>
@ -41,6 +42,7 @@ int setuid (unsigned uid);
int setregid (unsigned rgid, unsigned gid);
char * getpass (const char * prompt);
int fchown (int fd, unsigned uid, unsigned gid);
int mkostemp (char * template, int flags);
/* redirect or undo interceptions created by config.h */
#undef access
@ -61,8 +63,6 @@ int fchown (int fd, unsigned uid, unsigned gid);
#undef fopen
#undef mkdir
#define mkdir _mkdir
#undef mktemp
#define mktemp _mktemp
#undef open
#define open _open
#undef pipe