Cygwin: fork: move extern declarations to appropriate headers

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2019-01-16 12:59:27 +01:00
parent 89a99d3b58
commit f5808867cf
3 changed files with 4 additions and 2 deletions

View File

@ -22,6 +22,7 @@ details. */
#include "tls_pbuf.h"
#include "dll_init.h"
#include "cygmalloc.h"
#include "timer.h"
#include "ntdll.h"
#define NPIDS_HELD 4
@ -129,8 +130,6 @@ int __stdcall
frok::child (volatile char * volatile here)
{
HANDLE& hParent = ch.parent;
extern void fixup_hooks_after_fork ();
extern void fixup_timers_after_fork ();
/* NOTE: Logically this belongs in dll_list::load_after_fork, but by
doing it here, before the first sync_with_parent, we can exploit

View File

@ -56,4 +56,6 @@ class timer_tracker
static int close (timer_tracker *tt);
};
extern void fixup_timers_after_fork ();
#endif /* __TIMER_H__ */

View File

@ -185,6 +185,7 @@ extern "C" void error_start_init (const char*);
extern "C" int try_to_debug (bool waitloop = 1);
void ld_preload ();
void fixup_hooks_after_fork ();
const char *find_first_notloaded_dll (class path_conv &);
/**************************** Miscellaneous ******************************/