[llvm-commits] [test-suite] r42693 - in /test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast: config.h toast.c
Anton Korobeynikov
asl at math.spbu.ru
Sat Oct 6 03:37:40 PDT 2007
Author: asl
Date: Sat Oct 6 05:37:39 2007
New Revision: 42693
URL: http://llvm.org/viewvc/llvm-project?rev=42693&view=rev
Log:
Unbreak mediabench on mingw32
Modified:
test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast/config.h
test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast/toast.c
Modified: test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast/config.h
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast/config.h?rev=42693&r1=42692&r2=42693&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast/config.h (original)
+++ test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast/config.h Sat Oct 6 05:37:39 2007
@@ -18,8 +18,13 @@
/*efine HAS_ERRNO_DECL 1 /* errno.h declares errno */
#define HAS_FSTAT 1 /* fstat syscall */
+#ifndef __MINGW32__
#define HAS_FCHMOD 1 /* fchmod syscall */
#define HAS_FCHOWN 1 /* fchown syscall */
+#else
+#undef HAS_FCHMOD
+#undef HAS_FCHOWN
+#endif
#define HAS_STRING_H 1 /* /usr/include/string.h */
/*efine HAS_STRINGS_H 1 /* /usr/include/strings.h */
Modified: test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast/toast.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast/toast.c?rev=42693&r1=42692&r2=42693&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast/toast.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast/toast.c Sat Oct 6 05:37:39 2007
@@ -338,8 +338,10 @@
if (!instat.st_nlink) return; /* couldn't stat in */
#ifdef HAS_FCHOWN
(void)fchown(fileno(out), instat.st_uid, instat.st_gid);
-#else
+#else
+#ifndef __MINGW32__
(void)chown(outname, instat.st_uid, instat.st_gid);
+#endif
#endif /* HAS_FCHOWN */
}
More information about the llvm-commits
mailing list