summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/poll.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-01-12 22:40:46 +0000
committerChristopher Faylor <me@cgf.cx>2005-01-12 22:40:46 +0000
commit169c465a83ef690c2f84ef563c5b56062ee2cb13 (patch)
tree0dde0f7b39a8dbad2b4577d1125ae0f4d189c888 /winsup/cygwin/poll.cc
parent066e8c84249c6d4e81b22312b9d2a9f985dac35b (diff)
downloadcygnal-169c465a83ef690c2f84ef563c5b56062ee2cb13.tar.gz
cygnal-169c465a83ef690c2f84ef563c5b56062ee2cb13.tar.bz2
cygnal-169c465a83ef690c2f84ef563c5b56062ee2cb13.zip
Reorganize header file inclusion throughout so that cygerrno.h comes first.
* fhandler.h (select_record::thread_errno): Save any encountered errno here. (select_record::set_select_errno): New function. (select_record::saw_error): New function. (select_record::select_record): Initialize thread_errno to zero. * select.cc (set_handle_or_return_if_not_open): Set thread_errno on failure. (select_stuff::wait): Record errno for later resurrection in calling thread. (peek_serial): Ditto.
Diffstat (limited to 'winsup/cygwin/poll.cc')
-rw-r--r--winsup/cygwin/poll.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/poll.cc b/winsup/cygwin/poll.cc
index 4afbac858..9fd099732 100644
--- a/winsup/cygwin/poll.cc
+++ b/winsup/cygwin/poll.cc
@@ -18,11 +18,11 @@
#include <stdlib.h>
#define USE_SYS_TYPES_FD_SET
#include <winsock2.h>
+#include "cygerrno.h"
#include "security.h"
#include "path.h"
#include "fhandler.h"
#include "dtable.h"
-#include "cygerrno.h"
#include "cygheap.h"
#include "sigproc.h"