From 9a17f38d6cfa5097afc1b0effd10a03b03772578 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Wed, 5 Mar 2008 12:09:32 +0100 Subject: [PATCH] msvcmaker: winebuild needs getopt*.c and mkstemps.c when compiled with MSVC. --- tools/winapi/msvcmaker | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/winapi/msvcmaker b/tools/winapi/msvcmaker index 50644ac9b4b..1502cb71e30 100755 --- a/tools/winapi/msvcmaker +++ b/tools/winapi/msvcmaker @@ -760,6 +760,16 @@ sub _generate_dsp($$) { print OUT "\r\n"; print OUT "# PROP Default_Filter \"cpp;c;cxx;rc;def;r;odl;idl;hpj;bat\"\r\n"; + if ($project eq "winebuild") { + for my $ source_file ("getopt.c", "getopt1.c", "mkstemps.c") + { + print OUT "# Begin Source File\r\n"; + print OUT "\r\n"; + print OUT "SOURCE=..\\..\\libs\\port\\$source_file\r\n"; + print OUT "# End Source File\r\n"; + } + } + foreach my $source_file (@source_files) { $source_file =~ s%/%\\%g; if($source_file !~ /^\./) {