diff options
| author | Eli Zaretskii | 2013-08-04 20:52:25 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-08-04 20:52:25 +0300 |
| commit | e443729d658ee2b9e0f55bbbb90241819bf516a6 (patch) | |
| tree | 99b2252965cb7586270cbe13d16726df82f25a8e /lib-src/ntlib.h | |
| parent | e0fdb6943066032db294720915c3bd644bf2bcd1 (diff) | |
| download | emacs-e443729d658ee2b9e0f55bbbb90241819bf516a6.tar.gz emacs-e443729d658ee2b9e0f55bbbb90241819bf516a6.zip | |
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
Diffstat (limited to 'lib-src/ntlib.h')
| -rw-r--r-- | lib-src/ntlib.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/ntlib.h b/lib-src/ntlib.h index 3e48d2997e0..c30958365ca 100644 --- a/lib-src/ntlib.h +++ b/lib-src/ntlib.h | |||
| @@ -22,6 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | /* Include these headers now so we don't have to worry about include | 22 | /* Include these headers now so we don't have to worry about include |
| 23 | order dependencies in common source files. */ | 23 | order dependencies in common source files. */ |
| 24 | #include <direct.h> | 24 | #include <direct.h> |
| 25 | #include <fcntl.h> | ||
| 25 | #include <io.h> | 26 | #include <io.h> |
| 26 | #include <stdio.h> | 27 | #include <stdio.h> |
| 27 | 28 | ||
| @@ -41,6 +42,7 @@ int setuid (unsigned uid); | |||
| 41 | int setregid (unsigned rgid, unsigned gid); | 42 | int setregid (unsigned rgid, unsigned gid); |
| 42 | char * getpass (const char * prompt); | 43 | char * getpass (const char * prompt); |
| 43 | int fchown (int fd, unsigned uid, unsigned gid); | 44 | int fchown (int fd, unsigned uid, unsigned gid); |
| 45 | int mkostemp (char * template, int flags); | ||
| 44 | 46 | ||
| 45 | /* redirect or undo interceptions created by config.h */ | 47 | /* redirect or undo interceptions created by config.h */ |
| 46 | #undef access | 48 | #undef access |
| @@ -61,8 +63,6 @@ int fchown (int fd, unsigned uid, unsigned gid); | |||
| 61 | #undef fopen | 63 | #undef fopen |
| 62 | #undef mkdir | 64 | #undef mkdir |
| 63 | #define mkdir _mkdir | 65 | #define mkdir _mkdir |
| 64 | #undef mktemp | ||
| 65 | #define mktemp _mktemp | ||
| 66 | #undef open | 66 | #undef open |
| 67 | #define open _open | 67 | #define open _open |
| 68 | #undef pipe | 68 | #undef pipe |