summaryrefslogtreecommitdiff
path: root/ext/ByteLoader
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>1999-08-02 10:01:58 -0400
committerJarkko Hietaniemi <jhi@iki.fi>1999-08-03 10:41:04 +0000
commitd8ab9aa2cf5c10d4b3682f31b4167d92dd12d1a2 (patch)
tree68cf1b3cb0906169aaa6e997652dae9643ca71d4 /ext/ByteLoader
parentcd439c502eb7c742eb6cf76c8359a4d3384ae0f5 (diff)
downloadperl-d8ab9aa2cf5c10d4b3682f31b4167d92dd12d1a2.tar.gz
Hints for building ByteLoader in SunoS. Based on
To: Gurusamy Sarathy <gsar@activestate.com> Cc: Perl Porters <perl5-porters@perl.org> Subject: Re: 5.005_58 Not OK SunOS 4.1.3 Message-Id: <Pine.GSU.4.05.9908021357410.5873-100000@newton.phys> p4raw-id: //depot/cfgperl@3909
Diffstat (limited to 'ext/ByteLoader')
-rw-r--r--ext/ByteLoader/ByteLoader.xs7
-rw-r--r--ext/ByteLoader/hints/sunos.pl2
2 files changed, 9 insertions, 0 deletions
diff --git a/ext/ByteLoader/ByteLoader.xs b/ext/ByteLoader/ByteLoader.xs
index a3d53f69cc..c9d7d16d06 100644
--- a/ext/ByteLoader/ByteLoader.xs
+++ b/ext/ByteLoader/ByteLoader.xs
@@ -4,6 +4,13 @@
#include "XSUB.h"
#include "byterun.h"
+#ifdef NEED_FGETC_PROTOTYPE
+extern int fgetc();
+#endif
+#ifdef NEED_FREAD_PROTOTYPE
+extern int fread();
+#endif
+
static void
freadpv(U32 len, void *data, XPV *pv)
{
diff --git a/ext/ByteLoader/hints/sunos.pl b/ext/ByteLoader/hints/sunos.pl
new file mode 100644
index 0000000000..3faf498ecc
--- /dev/null
+++ b/ext/ByteLoader/hints/sunos.pl
@@ -0,0 +1,2 @@
+$self->{CCFLAGS} = $Config{ccflags} . ' -DNEED_FGETC_PROTOTYPE -DNEED_FREAD_PROTOTYPE';
+