[io-layer] Make process handles non-shared. Fixes #23423.
[mono.git] / mono / io-layer / processes.h
index 8e4c0aa558bf78da73681abd60b9710033109243..c2b78d44387dbc11d3b0bd6105170b2bc74a07ec 100644 (file)
@@ -10,6 +10,9 @@
 #ifndef _WAPI_PROCESSES_H_
 #define _WAPI_PROCESSES_H_
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
 #include <glib.h>
 
 #include <mono/io-layer/handles.h>
@@ -188,8 +191,6 @@ extern gboolean CreateProcessWithLogonW (const gunichar2 *username,
 
 extern gpointer GetCurrentProcess (void);
 extern guint32 GetProcessId (gpointer handle);
-extern guint32 GetCurrentProcessId (void);
-extern gboolean EnumProcesses (guint32 *pids, guint32 len, guint32 *needed);
 extern gboolean CloseProcess (gpointer handle);
 extern gpointer OpenProcess (guint32 access, gboolean inherit, guint32 pid);
 extern gboolean GetExitCodeProcess (gpointer process, guint32 *code);