This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
syscall() declaration in perl.h needs to have an EXTERN_C prefixing
authorSteve Peters <steve@fisharerojo.org>
Thu, 17 Aug 2006 17:57:33 +0000 (17:57 +0000)
committerSteve Peters <steve@fisharerojo.org>
Thu, 17 Aug 2006 17:57:33 +0000 (17:57 +0000)
it for some C++ compiles.  Might as well fix usleep()'s
declaration too.

p4raw-id: //depot/perl@28733

perl.h

diff --git a/perl.h b/perl.h
index 9d2611f..a5b0f06 100644 (file)
--- 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 */