mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-02-07 13:03:08 +00:00
Minor portabiulity fixes for MS-Windows.
makeint.h (ftruncate) [_MSC_VER]: Redirect to _chsize. (_S_ISDIR): If not defined (MinGW64), define to S_ISDIR.
This commit is contained in:
parent
75336026ae
commit
64dd61bcb8
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-05-04 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* makeint.h (ftruncate) [_MSC_VER]: Redirect to _chsize.
|
||||
(_S_ISDIR): If not defined (MinGW64), define to S_ISDIR.
|
||||
|
||||
2013-05-04 Paul Smith <psmith@gnu.org>
|
||||
|
||||
* job.c (child_out): Handle EINTR and incomplete write scenarios.
|
||||
|
|
|
@ -351,6 +351,14 @@ char *strsignal (int signum);
|
|||
# include <malloc.h>
|
||||
# define pipe(_p) _pipe((_p), 512, O_BINARY)
|
||||
# define kill(_pid,_sig) w32_kill((_pid),(_sig))
|
||||
/* MSVC doesn't have ftruncate. */
|
||||
# ifdef _MSC_VER
|
||||
# define ftruncate(_fd,_len) _chsize(_fd,_len)
|
||||
# endif
|
||||
/* MinGW64 doesn't have _S_ISDIR. */
|
||||
# ifndef _S_ISDIR
|
||||
# define _S_ISDIR(m) S_ISDIR(m)
|
||||
# endif
|
||||
|
||||
void sync_Path_environment (void);
|
||||
int w32_kill (pid_t pid, int sig);
|
||||
|
|
Loading…
Reference in a new issue