Treat cygwin perl as a win32 platform indicator.

Default to unix if platform is neither win32 nor mac.
Bug #166105 r=gerv a=asa
This commit is contained in:
seawood%netscape.com 2002-11-05 00:21:38 +00:00
Родитель 444e4babc7
Коммит 0821f71644
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -68,9 +68,9 @@ my $nofilelocks = $flock ? ($flock eq "-l") : 0;
# chrome your platform uses. There are currently three sorts of chrome:
# win, mac, and unix.
my $win32 = ($^O =~ /((MS)?win32)|os2/i) ? 1 : 0;
my $unix = ($^O =~ /linux/i) ? 1 : 0;
my $win32 = ($^O =~ /((MS)?win32)|cygwin|os2/i) ? 1 : 0;
my $macos = ($^O =~ /MacOS|darwin/i) ? 1 : 0;
my $unix = !($win32 || $macos) ? 1 : 0;
# Testing only - generate chromelist.txt for other platforms
# $macos = 1;