+2009-08-10 Bruno Haible <bruno@clisp.org>
+
+ Fix a gcc warning.
+ * lib/write.c (rpl_write): Cast result of _get_osfhandle.
+
2009-08-10 Bruno Haible <bruno@clisp.org>
Don't optimize AC_LIBOBJs, as they may appear in different contexts.
/* POSIX compatible write() function.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008-2009 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
if (ret < 0)
{
if (GetLastError () == ERROR_NO_DATA
- && GetFileType (_get_osfhandle (fd)) == FILE_TYPE_PIPE)
+ && GetFileType ((HANDLE) _get_osfhandle (fd)) == FILE_TYPE_PIPE)
{
/* Try to raise signal SIGPIPE. */
raise (SIGPIPE);