On Tue, Aug 27, 2024 at 5:25 PM Paul Eggert <egg...@cs.ucla.edu> wrote:
>
> On 2024-08-27 13:34, Bruno Haible wrote:
>
> > gllib\savewd.c(73,27): warning: implicit declaration of function 'fork' is 
> > invalid in C99 [-Wimplicit-function-declaration]
>
> Perhaps the attached patch?

Re:

+# if O_SEARCH != O_RDONLY || (defined _WIN32 && !defined __CYGWIN__)
+        /* There is no point to forking if O_SEARCH conforms to POSIX,
+           or on native MS-Windows which lacks 'fork'.  */
+        bool try_fork = false;
+# else
+        bool try_fork = errno == EACCES || errno == ESTALE;
+# endif
+        if (!try_fork)

iOS also lacks fork/exec, posix_spawn, etc. Apple wants devs to use
NSTask to create processes. (iirc).

Jeff

Reply via email to