diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-09-04 20:21:59 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-09-04 20:21:59 +0000 |
commit | 0bf7eb25e9e238046abce47d15e2fa3d10558a02 (patch) | |
tree | daf6dde98d1621b8ad3013e4b7b1f4b82fb8f438 /ext | |
parent | 0295179fdf8aa1b8c029859896e7340a11a3de74 (diff) | |
parent | d3a6a6fe5a9e3ef67f27330d1df0f6940f52d6a2 (diff) | |
download | perl-0bf7eb25e9e238046abce47d15e2fa3d10558a02.tar.gz |
integrate cfgperl contents into mainline
p4raw-id: //depot/perl@4076
Diffstat (limited to 'ext')
-rw-r--r-- | ext/ByteLoader/byterun.h | 7 | ||||
-rw-r--r-- | ext/SDBM_File/sdbm/sdbm.c | 2 | ||||
-rw-r--r-- | ext/Socket/Makefile.PL | 8 |
3 files changed, 12 insertions, 5 deletions
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/ext/Socket/Makefile.PL b/ext/Socket/Makefile.PL index 3819143ac0..339c45a0a1 100644 --- a/ext/Socket/Makefile.PL +++ b/ext/Socket/Makefile.PL @@ -1,7 +1,9 @@ use ExtUtils::MakeMaker; +use Config; WriteMakefile( - NAME => 'Socket', + NAME => 'Socket', VERSION_FROM => 'Socket.pm', - MAN3PODS => {}, # Pods will be built by installman. - XSPROTOARG => '-noprototypes', # XXX remove later? + ($Config{libs} =~ /(-lsocks\S*)/ ? (LIBS => [ "$1" ] ) : ()), + MAN3PODS => {}, # Pods will be built by installman. + XSPROTOARG => '-noprototypes', # XXX remove later? ); |