diff options
author | Christopher Faylor <me@cgf.cx> | 2005-01-13 01:40:46 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-01-13 01:40:46 +0300 |
commit | 169c465a83ef690c2f84ef563c5b56062ee2cb13 (patch) | |
tree | 0dde0f7b39a8dbad2b4577d1125ae0f4d189c888 /winsup/cygwin/fhandler_zero.cc | |
parent | 066e8c84249c6d4e81b22312b9d2a9f985dac35b (diff) |
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/fhandler_zero.cc')
-rw-r--r-- | winsup/cygwin/fhandler_zero.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_zero.cc b/winsup/cygwin/fhandler_zero.cc index e44599b61..0536bd69c 100644 --- a/winsup/cygwin/fhandler_zero.cc +++ b/winsup/cygwin/fhandler_zero.cc @@ -13,6 +13,7 @@ details. */ #include "winsup.h" #include <errno.h> #include "security.h" +#include "cygerrno.h" #include "path.h" #include "fhandler.h" |