summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/window.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-01-06 09:28:13 +0000
committerCorinna Vinschen <corinna@vinschen.de>2002-01-06 09:28:13 +0000
commitd6154fb758bddfc22abf303f5cb015b2c9fb4eeb (patch)
tree0d9496ce75979c99eb9ff34e1053b215d2be9f45 /winsup/cygwin/window.cc
parent9125cbd7cf47b848390294897561c556a8d8b572 (diff)
downloadcygnal-d6154fb758bddfc22abf303f5cb015b2c9fb4eeb.tar.gz
cygnal-d6154fb758bddfc22abf303f5cb015b2c9fb4eeb.tar.bz2
cygnal-d6154fb758bddfc22abf303f5cb015b2c9fb4eeb.zip
* ioctl.cc (ioctl): Make third argument optional.
* include/sys/ioctl.h: Ditto in declaration. * dtable.cc (dtable::init_std_file_from_handle): Revert previous bogus patch. * window.cc (WndProc): Raise SIGURG instead of SIGIO in case of FD_OOB message.
Diffstat (limited to 'winsup/cygwin/window.cc')
-rw-r--r--winsup/cygwin/window.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/window.cc b/winsup/cygwin/window.cc
index 953f603ba..2a1dafb62 100644
--- a/winsup/cygwin/window.cc
+++ b/winsup/cygwin/window.cc
@@ -18,6 +18,8 @@ details. */
#include <limits.h>
#include <wingdi.h>
#include <winuser.h>
+#define USE_SYS_TYPES_FD_SET
+#include <winsock2.h>
#include <unistd.h>
#include "cygerrno.h"
#include "perprocess.h"
@@ -61,7 +63,10 @@ WndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
}
return 0;
case WM_ASYNCIO:
- raise (SIGIO);
+ if (WSAGETSELECTEVENT(lParam) == FD_OOB)
+ raise (SIGURG);
+ else
+ raise (SIGIO);
return 0;
default:
return DefWindowProc (hwnd, uMsg, wParam, lParam);