Commit f6af06c7e566760913fdb09023268bf82a9b224f

Thomas de Grivel 2024-11-27T23:20:04

stub fork under win32

diff --git a/libkc3/kc3.c b/libkc3/kc3.c
index 7ec6a36..9f1b063 100644
--- a/libkc3/kc3.c
+++ b/libkc3/kc3.c
@@ -66,6 +66,13 @@ void kc3_system_pipe_exec (s32 pipe_fd, char **argv,
                            const s_list * const *list);
 #endif
 
+#ifdef WIN32
+int fork (void)
+{
+  return -1;
+}
+#endif
+
 s_tag * kc3_access (s_tag *tag, s_list **key,
                     s_tag *dest)
 {
diff --git a/libkc3/kc3_main.h b/libkc3/kc3_main.h
index d7d3b68..835490a 100644
--- a/libkc3/kc3_main.h
+++ b/libkc3/kc3_main.h
@@ -131,4 +131,9 @@ s_tag * kc3_while (s_tag *cond, s_tag *body, s_tag *dest);
 /* debug */
 void kc3_break (void);
 
+/* miscelleanous */
+#ifdef WIN32
+int fork (void);
+#endif
+
 #endif /* LIBKC3_KC3_MAIN_H */