GCC 4.1 fixes.
* cygheap.h (cygheap_user): Remove unneeded class names from function declaration. * fhandler.h (fhandler_base): Ditto. (fhandler_dev_floppy): Ditto. (fhandler_console): Ditto. * wininfo.h (wininfo): Ditto. * exceptions.cc (sigpacket::process): Avoid compiler errors about gotos and initialization. * fhandler_fifo.cc (fhandler_fifo::open): Ditto. * fhandler_floppy.cc (fhandler_dev_floppy::ioctl): Ditto. * fhandler_tty.cc (fhandler_tty_slave::ioctl): Ditto. * mmap.cc (mmap64): Ditto. * pipe.cc (fhandler_pipe::open): Ditto. * spawn.cc (spawn_guts): Ditto. * sec_helper.cc: Fix some comments. (get_null_sd): Move file-scope static to only function where it is used.
This commit is contained in:
@@ -150,6 +150,7 @@ fhandler_fifo::open (int flags, mode_t)
|
||||
char mutex[CYG_MAX_PATH];
|
||||
char *emutex = mutex + CYG_MAX_PATH;
|
||||
char *p, *p1;
|
||||
DWORD resw;
|
||||
|
||||
/* Generate a semi-unique name to associate with this fifo but try to ensure
|
||||
that it is no larger than CYG_MAX_PATH */
|
||||
@@ -175,7 +176,7 @@ fhandler_fifo::open (int flags, mode_t)
|
||||
open an fd. */
|
||||
/* FIXME? Need to wait for signal here?
|
||||
This shouldn't block for long, but... */
|
||||
DWORD resw = WaitForSingleObject (h, INFINITE);
|
||||
resw = WaitForSingleObject (h, INFINITE);
|
||||
lock_process::locker.acquire (); /* Restore the lock */
|
||||
if (resw != WAIT_OBJECT_0 && resw != WAIT_ABANDONED_0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user