diff options
| author | Ken Raeburn | 2015-11-01 01:42:21 -0400 |
|---|---|---|
| committer | Ken Raeburn | 2015-11-01 01:42:21 -0400 |
| commit | 39372e1a1032521be74575bb06f95a3898fbae30 (patch) | |
| tree | 754bd242a23d2358ea116126fcb0a629947bd9ec /nt/inc/sys | |
| parent | 6a3121904d76e3b2f63007341d48c5c1af55de80 (diff) | |
| parent | e11aaee266da52937a3a031cb108fe13f68958c3 (diff) | |
| download | emacs-39372e1a1032521be74575bb06f95a3898fbae30.tar.gz emacs-39372e1a1032521be74575bb06f95a3898fbae30.zip | |
merge from trunk
Diffstat (limited to 'nt/inc/sys')
| -rw-r--r-- | nt/inc/sys/mman.h | 31 | ||||
| -rw-r--r-- | nt/inc/sys/socket.h | 2 | ||||
| -rw-r--r-- | nt/inc/sys/stat.h | 9 | ||||
| -rw-r--r-- | nt/inc/sys/wait.h | 2 |
4 files changed, 41 insertions, 3 deletions
diff --git a/nt/inc/sys/mman.h b/nt/inc/sys/mman.h new file mode 100644 index 00000000000..6990edcb59b --- /dev/null +++ b/nt/inc/sys/mman.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* | ||
| 2 | * sys/mman.h | ||
| 3 | * mman-win32 | ||
| 4 | */ | ||
| 5 | |||
| 6 | #ifndef _SYS_MMAN_H_ | ||
| 7 | #define _SYS_MMAN_H_ | ||
| 8 | |||
| 9 | #include <sys/types.h> | ||
| 10 | |||
| 11 | #ifdef __cplusplus | ||
| 12 | extern "C" { | ||
| 13 | #endif | ||
| 14 | |||
| 15 | /* We need MAP_ANON in src/buffer.c */ | ||
| 16 | |||
| 17 | #define MAP_FILE 0 | ||
| 18 | #define MAP_SHARED 1 | ||
| 19 | #define MAP_PRIVATE 2 | ||
| 20 | #define MAP_TYPE 0xf | ||
| 21 | #define MAP_FIXED 0x10 | ||
| 22 | #define MAP_ANONYMOUS 0x20 | ||
| 23 | #define MAP_ANON MAP_ANONYMOUS | ||
| 24 | |||
| 25 | #define MAP_FAILED ((void *)-1) | ||
| 26 | |||
| 27 | #ifdef __cplusplus | ||
| 28 | }; | ||
| 29 | #endif | ||
| 30 | |||
| 31 | #endif /* _SYS_MMAN_H_ */ | ||
diff --git a/nt/inc/sys/socket.h b/nt/inc/sys/socket.h index 02a0584820f..6ad121699c5 100644 --- a/nt/inc/sys/socket.h +++ b/nt/inc/sys/socket.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright (C) 1995, 2001-2013 Free Software Foundation, Inc. | 1 | /* Copyright (C) 1995, 2001-2015 Free Software Foundation, Inc. |
| 2 | 2 | ||
| 3 | This file is part of GNU Emacs. | 3 | This file is part of GNU Emacs. |
| 4 | 4 | ||
diff --git a/nt/inc/sys/stat.h b/nt/inc/sys/stat.h index f1d8341141e..9b493539450 100644 --- a/nt/inc/sys/stat.h +++ b/nt/inc/sys/stat.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* sys/stat.h supplied with MSVCRT uses too narrow data types for | 1 | /* sys/stat.h supplied with MSVCRT uses too narrow data types for |
| 2 | inode and user/group id, so we replace them with our own. | 2 | inode and user/group id, so we replace them with our own. |
| 3 | 3 | ||
| 4 | Copyright (C) 2008-2013 Free Software Foundation, Inc. | 4 | Copyright (C) 2008-2015 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 7 | 7 | ||
| @@ -141,6 +141,13 @@ extern int w32_stat_get_owner_group; | |||
| 141 | 141 | ||
| 142 | /* Prevent redefinition by other headers, e.g. wchar.h. */ | 142 | /* Prevent redefinition by other headers, e.g. wchar.h. */ |
| 143 | #define _STAT_DEFINED | 143 | #define _STAT_DEFINED |
| 144 | /* This prevents definition in MinGW's wchar.h of inline functions | ||
| 145 | that use struct _stat64i32 etc., which we don't define and don't | ||
| 146 | support in our implementation of 'stat' and 'fstat'. If we don't | ||
| 147 | prevent definition of those inline functions, any program (e.g., | ||
| 148 | test programs run by configure) that includes both wchar.h and | ||
| 149 | sys/stat.h will fail to compile. */ | ||
| 150 | #define _WSTAT_DEFINED | ||
| 144 | 151 | ||
| 145 | int __cdecl __MINGW_NOTHROW fstat (int, struct stat*); | 152 | int __cdecl __MINGW_NOTHROW fstat (int, struct stat*); |
| 146 | int __cdecl __MINGW_NOTHROW stat (const char*, struct stat*); | 153 | int __cdecl __MINGW_NOTHROW stat (const char*, struct stat*); |
diff --git a/nt/inc/sys/wait.h b/nt/inc/sys/wait.h index d192453ff57..8f9628f1553 100644 --- a/nt/inc/sys/wait.h +++ b/nt/inc/sys/wait.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* A limited emulation of sys/wait.h on Posix systems. | 1 | /* A limited emulation of sys/wait.h on Posix systems. |
| 2 | 2 | ||
| 3 | Copyright (C) 2012-2013 Free Software Foundation, Inc. | 3 | Copyright (C) 2012-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||