[Mono-bugs] [Bug 54681][Wis] Changed - jay mkstemp error compiling MCS 0.30.1 on windows

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 24 Feb 2004 13:20:43 -0500 (EST)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jgerdes@quilogy.com.


--- shadow/54681	2004-02-20 22:23:31.000000000 -0500
+++ shadow/54681.tmp.31454	2004-02-24 13:20:43.000000000 -0500
@@ -1,10 +1,10 @@
 Bug#: 54681
 Product: Mono/Compilers
 Version: unspecified
+OS: unknown
 OS Details: XP SP1
 Status: NEW   
 Severity: Unknown
 Priority: Wishlist
 Component: C#
@@ -66,6 +66,23 @@
 I have attempted using the latest CVS as well with no success.  The mono 
 0.30.1 source does compile when using the detailed instructions from the 
 link above.
 In addition I have tried to set a TMPDIR directory as described in bug 
 #47696 with no success.
+------- Additional Comments From jgerdes@quilogy.com  2004-02-24 13:20 -------
+I replaced the following line in main.c:
+extern char *mkstemp();
+with this code:
+#if defined(_WIN32) && !defined(__CYGWIN32__) && !defined(__CYGWIN__)
+    extern char* mktemp();
+    #define mkstemp mktemp
+    extern char *mkstemp();
+This allow it to compile correctly in cygwin.  I am unsure if that 
+is the proper error fix but it did eliminatethe error.