From: Steve Peters Date: Thu, 17 Aug 2006 17:57:33 +0000 (+0000) Subject: syscall() declaration in perl.h needs to have an EXTERN_C prefixing X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c45598c5c02384ee183c07ababc5e058b2284e17;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/perl.h b/perl.h index 9d2611f..a5b0f06 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 */