From: Nicholas Clark Date: Tue, 10 Apr 2007 18:56:17 +0000 (+0000) Subject: Cast needed to get POSIX compiling with g++ on FreeBSD. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e02b91128a20d30213f621b1a24c2fecc2033e4a;p=p5sagit%2Fp5-mst-13.2.git Cast needed to get POSIX compiling with g++ on FreeBSD. p4raw-id: //depot/perl@30898 --- diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index 207d02a..388a260 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -1853,7 +1853,7 @@ ctermid(s = 0) char * s = 0; CODE: #ifdef HAS_CTERMID_R - s = safemalloc((size_t) L_ctermid); + s = (char *) safemalloc((size_t) L_ctermid); #endif RETVAL = ctermid(s); OUTPUT: