Revision 29b3a662 m68k-semi.c

b/m68k-semi.c
116 116
    p->gdb_st_gid = cpu_to_be32(s->st_gid);
117 117
    p->gdb_st_rdev = cpu_to_be32(s->st_rdev);
118 118
    p->gdb_st_size = cpu_to_be64(s->st_size);
119
#ifdef _WIN32
120
    /* Windows stat is missing some fields.  */
121
    p->gdb_st_blksize = 0;
122
    p->gdb_st_blocks = 0;
123
#else
119 124
    p->gdb_st_blksize = cpu_to_be64(s->st_blksize);
120 125
    p->gdb_st_blocks = cpu_to_be64(s->st_blocks);
126
#endif
121 127
    p->gdb_st_atime = cpu_to_be32(s->st_atime);
122 128
    p->gdb_st_mtime = cpu_to_be32(s->st_mtime);
123 129
    p->gdb_st_ctime = cpu_to_be32(s->st_ctime);
......
281 287
                           ARG(0), ARG(1));
282 288
            return;
283 289
        } else {
284
            struct timeval tv;
290
            qemu_timeval tv;
285 291
            struct gdb_timeval *p;
286
            result = gettimeofday(&tv, NULL);
292
            result = qemu_gettimeofday(&tv);
287 293
            if (result != 0) {
288 294
                p = lock_user(ARG(0), sizeof(struct gdb_timeval), 0);
289 295
                p->tv_sec = cpu_to_be32(tv.tv_sec);

Also available in: Unified diff