X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fglocalfileiostream.c;h=b55d2aa33e852ded5b60c369e47e33deb9a93efa;hb=174ebaefcc2b1b94f4a628e60f150b7209230dbf;hp=e1f295c5ad5cc8e6a94c8e2c032a2d4fdd38c3ee;hpb=45a1c41e8cfdeb4edeb7a671b95e599a49c6c281;p=platform%2Fupstream%2Fglib.git diff --git a/gio/glocalfileiostream.c b/gio/glocalfileiostream.c index e1f295c..b55d2aa 100644 --- a/gio/glocalfileiostream.c +++ b/gio/glocalfileiostream.c @@ -13,9 +13,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. + * Public License along with this library; if not, see . * * Author: Alexander Larsson */ @@ -27,12 +25,14 @@ #include "glibintl.h" #include "gioerror.h" #include "gcancellable.h" -#include "gfiledescriptorbased.h" #include "glocalfileiostream.h" #include "glocalfileinputstream.h" #include "glocalfileinfo.h" -#include "gioalias.h" +#ifdef G_OS_UNIX +#include "gfiledescriptorbased.h" +#endif + #define g_local_file_io_stream_get_type _g_local_file_io_stream_get_type G_DEFINE_TYPE (GLocalFileIOStream, g_local_file_io_stream, G_TYPE_FILE_IO_STREAM); @@ -59,8 +59,9 @@ _g_local_file_io_stream_new (GLocalFileOutputStream *output_stream) stream = g_object_new (G_TYPE_LOCAL_FILE_IO_STREAM, NULL); stream->output_stream = g_object_ref (output_stream); _g_local_file_output_stream_set_do_close (output_stream, FALSE); - fd = g_file_descriptor_based_get_fd (G_FILE_DESCRIPTOR_BASED (output_stream)); + fd = _g_local_file_output_stream_get_fd (output_stream); stream->input_stream = (GInputStream *)_g_local_file_input_stream_new (fd); + _g_local_file_input_stream_set_do_close (G_LOCAL_FILE_INPUT_STREAM (stream->input_stream), FALSE);