summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-04 16:48:33 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-04 16:48:33 +0000
commit2ef53570a0a9292278fc7d34d7d21270dd5ac7f0 (patch)
treea734560face300cd24b4d5d32a10c26803c187da /perl.h
parent524189f16184b7c26cd5c891db0a97b3ccc255cc (diff)
downloadperl-2ef53570a0a9292278fc7d34d7d21270dd5ac7f0.tar.gz
Configure tweaks; add prototype probes, make the cpp symbols
probe to cast, not whine; test for %Ld and %Lf before %lld and %llf because the L is the ANSI way. p4raw-id: //depot/perl@10434
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 69579d8c6b..b0524fbd97 100644
--- a/perl.h
+++ b/perl.h
@@ -506,6 +506,14 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER));
# include <unistd.h>
#endif
+#ifndef HAS_SYSCALL_PROTO
+int syscall(int, ...);
+#endif
+
+#ifndef HAS_USLEEP_PROTO
+int usleep(useconds_t);
+#endif
+
#ifdef PERL_MICRO /* Last chance to export Perl_my_swap */
# define MYSWAP
#endif
@@ -757,6 +765,12 @@ typedef struct perl_mstats perl_mstats_t;
# endif
#endif
+/* sockatmark() is so new that many places might have it hidden
+ * behind some -D_BLAH_BLAH_SOURCE guard. */
+#ifndef HAS_SOCKATMARK_PROTO
+int sockatmark(int);
+#endif
+
#ifdef SETERRNO
# undef SETERRNO /* SOCKS might have defined this */
#endif
@@ -3643,6 +3657,10 @@ typedef struct am_table_short AMTS;
# include <sys/file.h>
#endif
+#ifndef HAS_FLOCK_PROTO
+int flock(int fd, int op);
+#endif
+
#ifndef O_RDONLY
/* Assume UNIX defaults */
# define O_RDONLY 0000