[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / support / utime.c
index 4e40c687e988ad67fd1b2385b640c1d512500251..7f4cbb6488d29dc344424dee2e41c8259df9f15d 100644 (file)
@@ -4,28 +4,25 @@
  * Authors:
  *   Jonathan Pryor (jonpryor@vt.edu)
  *
- * Copyright (C) 2004 Jonathan Pryor
+ * Copyright (C) 2004-2006 Jonathan Pryor
  */
 
 #include <sys/types.h>
 #include <utime.h>
 
+#include "map.h"
 #include "mph.h"
 
 G_BEGIN_DECLS
 
-struct Mono_Posix_Utimbuf {
-       /* time_t */ mph_time_t actime;   /* access time */
-       /* time_t */ mph_time_t modtime;  /* modification time */
-};
-
 gint32
-Mono_Posix_Syscall_utime (const char *filename, struct Mono_Posix_Utimbuf *buf)
+Mono_Posix_Syscall_utime (const char *filename, struct Mono_Posix_Utimbuf *buf, 
+               int use_buf)
 {
        struct utimbuf _buf;
        struct utimbuf *pbuf = NULL;
 
-       if (buf) {
+       if (buf && use_buf) {
                _buf.actime  = buf->actime;
                _buf.modtime = buf->modtime;
                pbuf = &_buf;