diff --git a/contrib/win32/win32compat/inc/w32posix.h b/contrib/win32/win32compat/inc/w32posix.h index 0e3f851..c027d9f 100644 --- a/contrib/win32/win32compat/inc/w32posix.h +++ b/contrib/win32/win32compat/inc/w32posix.h @@ -97,6 +97,14 @@ typedef void(*sighandler_t)(int); * these should move to a internal header. */ int w32_temp_DelChildToWatch(HANDLE processtowatch); +int w32_temp_AddChildToWatch(HANDLE processtowatch); HANDLE w32_fd_to_handle(int fd); int w32_allocate_fd_for_handle(HANDLE h); +/* temporary definitions to aid in transition */ +#define WSHELPDelChildToWatch w32_temp_DelChildToWatch +#define WSHELPAddChildToWatch w32_temp_AddChildToWatch +#define sfd_to_handle w32_fd_to_handle +#define allocate_sfd w32_allocate_fd_for_handle +#define WSHELPwopen w32_open + diff --git a/contrib/win32/win32compat/w32fd.c b/contrib/win32/win32compat/w32fd.c index 20b4f91..d6a2cc3 100644 --- a/contrib/win32/win32compat/w32fd.c +++ b/contrib/win32/win32compat/w32fd.c @@ -603,6 +603,10 @@ w32_temp_DelChildToWatch(HANDLE processtowatch) { return 0; } +int w32_temp_AddChildToWatch(HANDLE processtowatch) { + return 0; +} + HANDLE w32_fd_to_handle(int fd) { return fd_table.w32_ios[fd]->handle;