Cast needed to get POSIX compiling with g++ on FreeBSD.
Nicholas Clark [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: