OK for apply ? --- mingw-w64-headers/crt/process.h | 3 +++ mingw-w64-headers/crt/unistd.h | 5 +++++ 2 files changed, 8 insertions(+)
diff --git a/mingw-w64-headers/crt/process.h b/mingw-w64-headers/crt/process.h index f43befb..5f635c8 100644 --- a/mingw-w64-headers/crt/process.h +++ b/mingw-w64-headers/crt/process.h @@ -156,7 +156,10 @@ extern "C" { intptr_t __cdecl spawnle(int,const char *_Filename,const char *_ArgList,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005; intptr_t __cdecl spawnlp(int,const char *_Filename,const char *_ArgList,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005; intptr_t __cdecl spawnlpe(int,const char *_Filename,const char *_ArgList,...) __MINGW_ATTRIB_DEPRECATED_MSVC2005; +#ifndef _CRT_GETPID_DEFINED +#define _CRT_GETPID_DEFINED /* Also in unistd.h */ int __cdecl getpid(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005; +#endif #ifdef __GNUC__ /* Those methods are predefined by gcc builtins to return int. So to prevent stupid warnings, define them in POSIX way. This is save, because those diff --git a/mingw-w64-headers/crt/unistd.h b/mingw-w64-headers/crt/unistd.h index 14725b2..0de8c7d 100644 --- a/mingw-w64-headers/crt/unistd.h +++ b/mingw-w64-headers/crt/unistd.h @@ -93,6 +93,11 @@ __CRT_INLINE int ftruncate(int __fd, _off_t __length) void __cdecl swab(char *_Buf1,char *_Buf2,int _SizeInBytes) __MINGW_ATTRIB_DEPRECATED_MSVC2005; #endif +#ifndef _CRT_GETPID_DEFINED +#define _CRT_GETPID_DEFINED /* Also in process.h */ + int __cdecl getpid(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005; +#endif + #ifdef __cplusplus } #endif -- 2.1.2
0001-Copy-getpid-in-process.h-declaration-to-unistd.h.patch
Description: Binary data
------------------------------------------------------------------------------
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public