aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/w32.c b/src/w32.c
index 10d64212058..9fe88833b4f 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -153,7 +153,8 @@ typedef PSID_IDENTIFIER_AUTHORITY (WINAPI * GetSidIdentifierAuthority_Proc) (
153 PSID pSid); 153 PSID pSid);
154 154
155 /* ** A utility function ** */ 155 /* ** A utility function ** */
156static BOOL is_windows_9x () 156static BOOL
157is_windows_9x ()
157{ 158{
158 static BOOL s_b_ret=0; 159 static BOOL s_b_ret=0;
159 OSVERSIONINFO os_ver; 160 OSVERSIONINFO os_ver;
@@ -2871,7 +2872,8 @@ int h_errno = 0;
2871/* function to set h_errno for compatability; map winsock error codes to 2872/* function to set h_errno for compatability; map winsock error codes to
2872 normal system codes where they overlap (non-overlapping definitions 2873 normal system codes where they overlap (non-overlapping definitions
2873 are already in <sys/socket.h> */ 2874 are already in <sys/socket.h> */
2874static void set_errno () 2875static void
2876set_errno ()
2875{ 2877{
2876 if (winsock_lib == NULL) 2878 if (winsock_lib == NULL)
2877 h_errno = EINVAL; 2879 h_errno = EINVAL;
@@ -2892,7 +2894,8 @@ static void set_errno ()
2892 errno = h_errno; 2894 errno = h_errno;
2893} 2895}
2894 2896
2895static void check_errno () 2897static void
2898check_errno ()
2896{ 2899{
2897 if (h_errno == 0 && winsock_lib != NULL) 2900 if (h_errno == 0 && winsock_lib != NULL)
2898 pfn_WSASetLastError (0); 2901 pfn_WSASetLastError (0);
@@ -3676,7 +3679,8 @@ _sys_read_ahead (int fd)
3676 return cp->status; 3679 return cp->status;
3677} 3680}
3678 3681
3679int _sys_wait_accept (int fd) 3682int
3683_sys_wait_accept (int fd)
3680{ 3684{
3681 HANDLE hEv; 3685 HANDLE hEv;
3682 child_process * cp; 3686 child_process * cp;
@@ -4136,7 +4140,8 @@ BOOL WINAPI shutdown_handler(DWORD type)
4136 must always be initialized on startup even when the global variable 4140 must always be initialized on startup even when the global variable
4137 initialized is non zero (see the function main in emacs.c). 4141 initialized is non zero (see the function main in emacs.c).
4138*/ 4142*/
4139void globals_of_w32 () 4143void
4144globals_of_w32 ()
4140{ 4145{
4141 g_b_init_is_windows_9x = 0; 4146 g_b_init_is_windows_9x = 0;
4142 g_b_init_open_process_token = 0; 4147 g_b_init_open_process_token = 0;