Author: asl
Date: Sat Oct  6 05:55:20 2007
New Revision: 42694

URL: http://llvm.org/viewvc/llvm-project?rev=42694&view=rev
Log:
Unbreak toast again for mingw32.
Funny, but we have two toast's in in llvm-test. Maybe we should drop one?

Modified:
    test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-gsm/config.h
    test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-gsm/toast.c

Modified: test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-gsm/config.h
URL: 
http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-gsm/config.h?rev=42694&r1=42693&r2=42694&view=diff

==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-gsm/config.h 
(original)
+++ test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-gsm/config.h Sat 
Oct  6 05:55:20 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/MiBench/telecomm-gsm/toast.c
URL: 
http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-gsm/toast.c?rev=42694&r1=42693&r2=42694&view=diff

==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-gsm/toast.c 
(original)
+++ test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-gsm/toast.c Sat 
Oct  6 05:55:20 2007
@@ -339,7 +339,9 @@
 #ifdef HAS_FCHOWN
        (void)fchown(fileno(out), instat.st_uid, instat.st_gid);
 #else 
+#ifndef __MINGW32__
        (void)chown(outname, instat.st_uid, instat.st_gid);
+#endif 
 #endif /* HAS_FCHOWN */
 }
 


_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to