This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Cast needed to get POSIX compiling with g++ on FreeBSD.
authorNicholas Clark <nick@ccl4.org>
Tue, 10 Apr 2007 18:56:17 +0000 (18:56 +0000)
committerNicholas Clark <nick@ccl4.org>
Tue, 10 Apr 2007 18:56:17 +0000 (18:56 +0000)
p4raw-id: //depot/perl@30898

ext/POSIX/POSIX.xs

index 207d02a..388a260 100644 (file)
@@ -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: