summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-05-14 23:34:26 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-05-14 23:34:26 +0000
commitee580363108be8ac33155650c6c18d2e5cf051f3 (patch)
tree624481ea9b43b14435199892029f54adfa629ab2 /ext
parent7b8d334a971230040a212bc5038097b3f600a094 (diff)
downloadperl-ee580363108be8ac33155650c6c18d2e5cf051f3.tar.gz
[win32] merge change#904 from maintbranch
p4raw-link: @904 on //depot/maint-5.004/perl: 0af7994b889ad0dfcacb011f16f9e3c77a9292b9 p4raw-id: //depot/win32/perl@975
Diffstat (limited to 'ext')
-rw-r--r--ext/DynaLoader/dl_aix.xs14
-rw-r--r--ext/IO/lib/IO/Socket.pm2
-rw-r--r--ext/NDBM_File/NDBM_File.pm3
3 files changed, 17 insertions, 2 deletions
diff --git a/ext/DynaLoader/dl_aix.xs b/ext/DynaLoader/dl_aix.xs
index 4e865edd3b..ea5040857d 100644
--- a/ext/DynaLoader/dl_aix.xs
+++ b/ext/DynaLoader/dl_aix.xs
@@ -29,6 +29,20 @@
#include <a.out.h>
#include <ldfcn.h>
+/*
+ * AIX 4.3 does remove some useful definitions from ldfcn.h. Define
+ * these here to compensate for that lossage.
+ */
+#ifndef BEGINNING
+# define BEGINNING SEEK_SET
+#endif
+#ifndef FSEEK
+# define FSEEK(ldptr,o,p) fseek(IOPTR(ldptr),(p==BEGINNING)?(OFFSET(ldptr) +o):o,p)
+#endif
+#ifndef FREAD
+# define FREAD(p,s,n,ldptr) fread(p,s,n,IOPTR(ldptr))
+#endif
+
/* If using PerlIO, redefine these macros from <ldfcn.h> */
#ifdef USE_PERLIO
#define FSEEK(ldptr,o,p) PerlIO_seek(IOPTR(ldptr),(p==BEGINNING)?(OFFSET(ldptr)+o):o,p)
diff --git a/ext/IO/lib/IO/Socket.pm b/ext/IO/lib/IO/Socket.pm
index aadb502f19..406f74d2ff 100644
--- a/ext/IO/lib/IO/Socket.pm
+++ b/ext/IO/lib/IO/Socket.pm
@@ -186,7 +186,7 @@ sub socketpair {
my $fh1 = $class->new();
my $fh2 = $class->new();
- socketpair($fh1,$fh1,$domain,$type,$protocol) or
+ socketpair($fh1,$fh2,$domain,$type,$protocol) or
return ();
${*$fh1}{'io_socket_type'} = ${*$fh2}{'io_socket_type'} = $type;
diff --git a/ext/NDBM_File/NDBM_File.pm b/ext/NDBM_File/NDBM_File.pm
index 47b1f5aa3c..ed4fe2b36f 100644
--- a/ext/NDBM_File/NDBM_File.pm
+++ b/ext/NDBM_File/NDBM_File.pm
@@ -12,7 +12,7 @@ require DynaLoader;
@ISA = qw(Tie::Hash DynaLoader);
-$VERSION = "1.00";
+$VERSION = "1.01";
bootstrap NDBM_File $VERSION;
@@ -27,6 +27,7 @@ NDBM_File - Tied access to ndbm files
=head1 SYNOPSIS
use NDBM_File;
+ use Fcntl; # for O_ constants
tie(%h, 'NDBM_File', 'Op.dbmx', O_RDWR|O_CREAT, 0640);