Added check for fork() to fix the MinGW build.
diff --git a/configure b/configure index 0cb457e..3462dac 100755 --- a/configure +++ b/configure
@@ -16151,6 +16151,7 @@ + for ac_func in \ _lwp_create \ _lwp_self \ @@ -16165,6 +16166,7 @@ clone \ epoll_create \ finite \ + fork \ fpclass \ fstatfs \ fstatvfs \
diff --git a/configure.ac b/configure.ac index cd482da..9a12968 100644 --- a/configure.ac +++ b/configure.ac
@@ -1074,6 +1074,7 @@ clone \ epoll_create \ finite \ + fork \ fpclass \ fstatfs \ fstatvfs \
diff --git a/dlls/gdi/printdrv.c b/dlls/gdi/printdrv.c index 732b3f7..6c84d8f 100644 --- a/dlls/gdi/printdrv.c +++ b/dlls/gdi/printdrv.c
@@ -481,6 +481,7 @@ return -1; } TRACE("command: '%s'\n", psCmdP); +#ifdef HAVE_FORK if (*psCmdP == '|') { int fds[2]; @@ -510,6 +511,7 @@ TRACE("Need to execute a cmnd and pipe the output to it\n"); } else +#endif { char *buffer; WCHAR psCmdPW[MAX_PATH];
diff --git a/include/config.h.in b/include/config.h.in index 8cdb8e5..0997143 100644 --- a/include/config.h.in +++ b/include/config.h.in
@@ -92,6 +92,9 @@ /* Define to 1 if you have the <fontconfig/fontconfig.h> header file. */ #undef HAVE_FONTCONFIG_FONTCONFIG_H +/* Define to 1 if you have the `fork' function. */ +#undef HAVE_FORK + /* Define to 1 if you have the `fpclass' function. */ #undef HAVE_FPCLASS