add support for building on os/2 with emx

This commit is contained in:
Josh Coalson
2005-09-03 03:54:16 +00:00
parent 1be4415813
commit e9a638d004
12 changed files with 46 additions and 21 deletions

View File

@@ -221,7 +221,7 @@ bool transport_tempfile_(const char *filename, FILE **tempfile, char **tempfilen
*tempfile = 0;
}
#if defined _MSC_VER || defined __MINGW32__
#if defined _MSC_VER || defined __MINGW32__ || defined __EMX__
if(unlink(filename) < 0) {
cleanup_tempfile_(tempfile, tempfilename);
return false;
@@ -256,7 +256,7 @@ void set_file_stats_(const char *filename, struct stat *stats)
srctime.modtime = stats->st_mtime;
(void)chmod(filename, stats->st_mode);
(void)utime(filename, &srctime);
#if !defined _MSC_VER && !defined __MINGW32__
#if !defined _MSC_VER && !defined __MINGW32__ && !defined __EMX__
(void)chown(filename, stats->st_uid, (gid_t)(-1));
(void)chown(filename, (uid_t)(-1), stats->st_gid);
#endif