diff options
author | Fifer, Eric <EFifer@sanwaint.com> | 1999-08-20 16:37:27 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-09-01 23:14:50 +0000 |
commit | d493b042f9961908e4bd0039eb1241e646536179 (patch) | |
tree | 108fc310f9365d987781213465623dc735538345 | |
parent | 7ecd88f12de2d02174692d015d1d0bf26ee3cbdb (diff) | |
download | perl-d493b042f9961908e4bd0039eb1241e646536179.tar.gz |
[ID 19990821.001] [PATCH] perl5.005_60 cygwin port
To: perl5-porters@perl.org
Message-Id: <8A160D637356D311BC4300600849EC8122E217@POST>
p4raw-id: //depot/cfgperl@4066
-rw-r--r-- | cygwin/Makefile.SHs | 1 | ||||
-rw-r--r-- | ext/ByteLoader/byterun.h | 7 | ||||
-rw-r--r-- | ext/SDBM_File/sdbm/sdbm.c | 2 | ||||
-rw-r--r-- | hints/cygwin.sh | 1 | ||||
-rw-r--r-- | perl.h | 2 | ||||
-rw-r--r-- | pp_sys.c | 2 | ||||
-rwxr-xr-x | t/io/fs.t | 2 | ||||
-rwxr-xr-x | t/io/tell.t | 2 | ||||
-rwxr-xr-x | t/lib/anydbm.t | 2 | ||||
-rwxr-xr-x | t/op/stat.t | 2 |
10 files changed, 15 insertions, 8 deletions
diff --git a/cygwin/Makefile.SHs b/cygwin/Makefile.SHs index e6a604db87..4a3790768d 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 31a9033845..9634688b20 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 c1e2e4a8a4..499871dfab 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 e6d466bfda..23d055faa6 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 @@ -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; @@ -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(); @@ -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 8df0228c31..31287e1d19 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 ed83a56222..9efe5e9f3e 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 <Op_dbmx*>; diff --git a/t/op/stat.t b/t/op/stat.t index 60c70f2bb7..0af55bbaab 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; |