Author: allison
Date: Thu Nov 27 17:19:03 2008
New Revision: 33286
Modified:
branches/pdd22io_part2/src/pmc/filehandle.pmc
Log:
[pdd22io] All platforms can call 'get_fd', but simply returns -1 on non-unix
platforms.
Modified: branches/pdd22io_part2/src/pmc/filehandle.pmc
==============================================================================
--- branches/pdd22io_part2/src/pmc/filehandle.pmc (original)
+++ branches/pdd22io_part2/src/pmc/filehandle.pmc Thu Nov 27 17:19:03 2008
@@ -504,8 +504,6 @@
}
-#ifdef PIO_OS_UNIX
-
/*
=item C<METHOD get_fd()>
@@ -518,12 +516,16 @@
*/
METHOD get_fd() {
+#ifdef PIO_OS_UNIX
INTVAL os_handle;
GET_ATTR_os_handle(INTERP, SELF, os_handle);
RETURN(INTVAL os_handle);
+#endif /*PIO_OS_UNIX*/
+
+ RETURN(INTVAL -1);
+
}
-#endif /*PIO_OS_UNIX*/
/*