summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-08-17 17:57:33 +0000
committerSteve Peters <steve@fisharerojo.org>2006-08-17 17:57:33 +0000
commitc45598c5c02384ee183c07ababc5e058b2284e17 (patch)
tree9d8604f34d67cf178d87224885ad7c6432e86d0e /perl.h
parentc68480ca39f58e0c7bce1d278886ddf251baa5f7 (diff)
downloadperl-c45598c5c02384ee183c07ababc5e058b2284e17.tar.gz
syscall() declaration in perl.h needs to have an EXTERN_C prefixing
it for some C++ compiles. Might as well fix usleep()'s declaration too. p4raw-id: //depot/perl@28733
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index 9d2611f265..a5b0f06bbb 100644
--- a/perl.h
+++ b/perl.h
@@ -587,11 +587,11 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER));
#endif
#if defined(HAS_SYSCALL) && !defined(HAS_SYSCALL_PROTO) && !defined(PERL_MICRO)
-int syscall(int, ...);
+EXTERN_C int syscall(int, ...);
#endif
#if defined(HAS_USLEEP) && !defined(HAS_USLEEP_PROTO) && !defined(PERL_MICRO)
-int usleep(unsigned int);
+EXTERN_C int usleep(unsigned int);
#endif
#ifdef PERL_MICRO /* Last chance to export Perl_my_swap */