Author: cwittich
Date: Thu Mar 6 17:57:24 2008
New Revision: 32590
URL:
http://svn.reactos.org/svn/reactos?rev=3D32590&view=3Drev
Log:
put the newly added code in #ifdef _WIN32
Modified:
trunk/tools/RosBE/RosBE-Windows/Tools/ccache-2.4/ccache.c
Modified: trunk/tools/RosBE/RosBE-Windows/Tools/ccache-2.4/ccache.c
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Too=
ls/ccache-2.4/ccache.c?rev=3D32590&r1=3D32589&r2=3D32590&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/tools/RosBE/RosBE-Windows/Tools/ccache-2.4/ccache.c (original)
+++ trunk/tools/RosBE/RosBE-Windows/Tools/ccache-2.4/ccache.c Thu Mar 6 17=
:57:24 2008
@@ -125,9 +125,11 @@
static void failed(void)
{
char *e;
+#ifdef _WIN32
STARTUPINFO si;
PROCESS_INFORMATION pi;
char* merged =3D build_command(orig_args->argv);
+#endif
=
/* delete intermediate pre-processor file if needed */
if (i_tmpfile) {
@@ -157,6 +159,7 @@
args_add_prefix(orig_args, p);
}
=
+#ifdef _WIN32
ZeroMemory(&si, sizeof(STARTUPINFO));
ZeroMemory(&pi, sizeof(PROCESS_INFORMATION));
=
@@ -174,6 +177,12 @@
CloseHandle( pi.hThread );
=
exit(0);
+#else
+ execv(orig_args->argv[0], orig_args->argv);
+ cc_log("execv returned (%s)!\n", strerror(errno));
+ perror(orig_args->argv[0]);
+ exit(1);
+#endif
}
=
=