diff options
author | Hector Chu <hectorchu@gmail.com> | 2009-11-30 11:53:11 -0800 |
---|---|---|
committer | Hector Chu <hectorchu@gmail.com> | 2009-11-30 11:53:11 -0800 |
commit | 24dff2fa7785801a25f1fcac53313e83ae61201b (patch) | |
tree | 7ac62e529fdf4675e7449e7171ed7cc0a573e517 /src/lib9/dirfwstat.c | |
parent | 0106c26c2d751926fc223eee01e6fac8e2b0b1d4 (diff) | |
download | go-24dff2fa7785801a25f1fcac53313e83ae61201b.tar.gz |
Ports of lib9, libbio and libmach to Windows.
R=rsc
http://codereview.appspot.com/157159
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/lib9/dirfwstat.c')
-rw-r--r-- | src/lib9/dirfwstat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib9/dirfwstat.c b/src/lib9/dirfwstat.c index 657a98df0..15f1c1252 100644 --- a/src/lib9/dirfwstat.c +++ b/src/lib9/dirfwstat.c @@ -61,10 +61,12 @@ dirfwstat(int fd, Dir *dir) struct timeval tv[2]; ret = 0; +#ifndef __MINGW32__ if(~dir->mode != 0){ if(fchmod(fd, dir->mode) < 0) ret = -1; } +#endif if(~dir->mtime != 0){ tv[0].tv_sec = dir->mtime; tv[0].tv_usec = 0; |