summaryrefslogtreecommitdiff
path: root/ext/IO
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-08-24 10:46:42 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-08-24 10:46:42 +0000
commitb76f91fcea858b4c9ff8318bb0e9892afb37cbc8 (patch)
treefe5c87fb3a7466deab9a52094761890c04b1642b /ext/IO
parent641ea34509d056562619331a992674963cdc137c (diff)
downloadperl-b76f91fcea858b4c9ff8318bb0e9892afb37cbc8.tar.gz
Various tweaks for getting Perl to compile on SunOS 4.x.
Doesn't work well yet, something broken in DynaLoader/XSLoader? p4raw-id: //depot/perl@20867
Diffstat (limited to 'ext/IO')
-rw-r--r--ext/IO/poll.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/IO/poll.c b/ext/IO/poll.c
index 02a99b9725..9d39d57f2f 100644
--- a/ext/IO/poll.c
+++ b/ext/IO/poll.c
@@ -135,3 +135,12 @@ again:
}
#endif /* EMULATE_POLL_WITH_SELECT */
+
+/* gcc for SunOS 4 produces code from an empty (code/symbolwise)
+ * source code file that makes the SunOS 4.x /usr/bin/ld fail with
+ * ld: poll.o: premature EOF
+ * To avoid this, have at least something in here. */
+#if defined(__sun) && !defined(__SVR4) && defined(__GNUC__)
+static int dummy;
+#endif
+