summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/perthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/perthread.h')
-rw-r--r--winsup/cygwin/perthread.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/winsup/cygwin/perthread.h b/winsup/cygwin/perthread.h
index add07e3d5..4436168fd 100644
--- a/winsup/cygwin/perthread.h
+++ b/winsup/cygwin/perthread.h
@@ -43,8 +43,14 @@ public:
size_t size () {return sizeof (waitq);}
};
-#if defined (NEED_VFORK)
+#ifdef NEED_VFORK
#include "cygtls.h"
+#endif
+
+#ifndef NEWVFORK
+#define VFORKPID 0
+#else
+#if defined (NEED_VFORK)
class vfork_save
{
jmp_buf j;
@@ -82,7 +88,9 @@ public:
};
extern per_thread_vfork vfork_storage;
extern vfork_save *main_vfork;
+#define VFORKPID main_vfork->pid
#endif
+#endif /*NEWVFORK*/
extern per_thread_waitq waitq_storage;