From: Fifer, Eric Date: Fri, 20 Aug 1999 15:37:27 +0000 (+0100) Subject: [ID 19990821.001] [PATCH] perl5.005_60 cygwin port X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d493b042f9961908e4bd0039eb1241e646536179;p=p5sagit%2Fp5-mst-13.2.git [ID 19990821.001] [PATCH] perl5.005_60 cygwin port To: perl5-porters@perl.org Message-Id: <8A160D637356D311BC4300600849EC8122E217@POST> p4raw-id: //depot/cfgperl@4066 --- diff --git a/cygwin/Makefile.SHs b/cygwin/Makefile.SHs index e6a604d..4a37907 100644 --- a/cygwin/Makefile.SHs +++ b/cygwin/Makefile.SHs @@ -132,6 +132,7 @@ miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL)s$(LIB_EXT) ;; *) $spitshell >>Makefile <<'!NO!SUBS!' +cwobj = $(obj) # perl library $(LIBPERL)$(LIB_EXT): $& perl$(OBJ_EXT) $(cwobj) diff --git a/ext/ByteLoader/byterun.h b/ext/ByteLoader/byterun.h index 31a9033..9634688 100644 --- a/ext/ByteLoader/byterun.h +++ b/ext/ByteLoader/byterun.h @@ -151,7 +151,12 @@ enum { OPt_COP /* 10 */ }; -EXT void byterun(pTHXo_ struct bytestream bs); +#if defined(CYGWIN) +extern +#else +EXT +#endif +void byterun(pTHXo_ struct bytestream bs); #define INIT_SPECIALSV_LIST STMT_START { \ PL_specialsv_list[0] = Nullsv; \ diff --git a/ext/SDBM_File/sdbm/sdbm.c b/ext/SDBM_File/sdbm/sdbm.c index c1e2e4a..499871d 100644 --- a/ext/SDBM_File/sdbm/sdbm.c +++ b/ext/SDBM_File/sdbm/sdbm.c @@ -128,7 +128,7 @@ sdbm_prep(char *dirname, char *pagname, int flags, int mode) * open the files in sequence, and stat the dirfile. * If we fail anywhere, undo everything, return NULL. */ -#if defined(OS2) || defined(MSDOS) || defined(WIN32) +#if defined(OS2) || defined(MSDOS) || defined(WIN32) || defined(CYGWIN) flags |= O_BINARY; # endif if ((db->pagf = open(pagname, flags, mode)) > -1) { diff --git a/hints/cygwin.sh b/hints/cygwin.sh index e6d466b..23d055f 100644 --- a/hints/cygwin.sh +++ b/hints/cygwin.sh @@ -25,6 +25,7 @@ lddlflags='-L/usr/local/lib' useshrplib='true' libperl='libperl.a' dlext='dll' +dynamic_ext=' ' man1dir=/usr/local/man/man1 man3dir=/usr/local/man/man3 diff --git a/perl.h b/perl.h index 0674771..613f84f 100644 --- a/perl.h +++ b/perl.h @@ -2576,7 +2576,7 @@ struct perl_vars { EXT struct perl_vars PL_Vars; EXT struct perl_vars *PL_VarsPtr INIT(&PL_Vars); #else /* PERL_CORE */ -#if !defined(__GNUC__) || !(defined(WIN32) || defined(CYGWIN)) +#if !defined(__GNUC__) || !defined(WIN32) EXT #endif /* WIN32 */ struct perl_vars *PL_VarsPtr; diff --git a/pp_sys.c b/pp_sys.c index 8c0820f..3149f24 100644 --- a/pp_sys.c +++ b/pp_sys.c @@ -4740,7 +4740,7 @@ PP(pp_gpwent) PP(pp_spwent) { djSP; -#if defined(HAS_PASSWD) && defined(HAS_SETPWENT) && !defined(CYGWIN) +#if defined(HAS_PASSWD) && defined(HAS_SETPWENT) setpwent(); # ifdef HAS_SETSPENT setspent(); diff --git a/t/io/fs.t b/t/io/fs.t index b74c9ca..087021b 100755 --- a/t/io/fs.t +++ b/t/io/fs.t @@ -10,7 +10,7 @@ BEGIN { use Config; $Is_Dosish = ($^O eq 'MSWin32' or $^O eq 'dos' or - $^O eq 'os2' or $^O eq 'mint' or $^O =~ /cygwin/); + $^O eq 'os2' or $^O eq 'mint'); print "1..28\n"; diff --git a/t/io/tell.t b/t/io/tell.t index 8df0228..31287e1 100755 --- a/t/io/tell.t +++ b/t/io/tell.t @@ -7,7 +7,7 @@ print "1..21\n"; $TST = 'tst'; $Is_Dosish = ($^O eq 'MSWin32' or $^O eq 'dos' or - $^O eq 'os2' or $^O eq 'mint' or $^O =~ /cygwin/); + $^O eq 'os2' or $^O eq 'mint'); open($TST, '../Configure') || (die "Can't open ../Configure"); binmode $TST if $Is_Dosish; diff --git a/t/lib/anydbm.t b/t/lib/anydbm.t index ed83a56..9efe5e9 100755 --- a/t/lib/anydbm.t +++ b/t/lib/anydbm.t @@ -13,7 +13,7 @@ use Fcntl; print "1..12\n"; $Is_Dosish = ($^O eq 'amigaos' || $^O eq 'MSWin32' or $^O eq 'dos' or - $^O eq 'os2' or $^O eq 'mint' or $^O =~ /cygwin/); + $^O eq 'os2' or $^O eq 'mint'); unlink ; diff --git a/t/op/stat.t b/t/op/stat.t index 60c70f2..0af55bb 100755 --- a/t/op/stat.t +++ b/t/op/stat.t @@ -13,7 +13,7 @@ print "1..58\n"; $Is_MSWin32 = $^O eq 'MSWin32'; $Is_Dos = $^O eq 'dos'; -$Is_Dosish = $Is_Dos || $^O eq 'os2' || $Is_MSWin32 || $^O =~ /cygwin/; +$Is_Dosish = $Is_Dos || $^O eq 'os2' || $Is_MSWin32; chop($cwd = ($Is_MSWin32 ? `cd` : `pwd`)); $DEV = `ls -l /dev` unless $Is_Dosish;