diff options
| author | Wayne Davison <wayned@samba.org> | 2004-10-01 02:34:22 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2004-10-01 02:34:22 +0000 |
| commit | 3267d6a9ceeefad438080b17c02daa7775820803 (patch) | |
| tree | a2d4eb9297c4dab6d05b50a1445a7e55ab84b9e7 /syscall.c | |
| parent | 3ba2c330e1ba90a2ef11508b62d74be8967b0770 (diff) | |
| download | android_external_rsync-3267d6a9ceeefad438080b17c02daa7775820803.tar.gz android_external_rsync-3267d6a9ceeefad438080b17c02daa7775820803.tar.bz2 android_external_rsync-3267d6a9ceeefad438080b17c02daa7775820803.zip | |
Some systems need do_mkstemp() to use setmode() to set O_BINARY.
Diffstat (limited to 'syscall.c')
| -rw-r--r-- | syscall.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -164,6 +164,9 @@ int do_mkstemp(char *template, mode_t perms) errno = errno_save; return -1; } +#if HAVE_SETMODE && O_BINARY + setmode(fd, O_BINARY); +#endif return fd; } #else |
