Commit bed3842c authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

Added check for fork() to fix the MinGW build.

parent a89ac894
...@@ -16151,6 +16151,7 @@ fi ...@@ -16151,6 +16151,7 @@ fi
for ac_func in \ for ac_func in \
_lwp_create \ _lwp_create \
_lwp_self \ _lwp_self \
...@@ -16165,6 +16166,7 @@ for ac_func in \ ...@@ -16165,6 +16166,7 @@ for ac_func in \
clone \ clone \
epoll_create \ epoll_create \
finite \ finite \
fork \
fpclass \ fpclass \
fstatfs \ fstatfs \
fstatvfs \ fstatvfs \
......
...@@ -1074,6 +1074,7 @@ AC_CHECK_FUNCS(\ ...@@ -1074,6 +1074,7 @@ AC_CHECK_FUNCS(\
clone \ clone \
epoll_create \ epoll_create \
finite \ finite \
fork \
fpclass \ fpclass \
fstatfs \ fstatfs \
fstatvfs \ fstatvfs \
......
...@@ -481,6 +481,7 @@ static int CreateSpoolFile(LPCSTR pszOutput) ...@@ -481,6 +481,7 @@ static int CreateSpoolFile(LPCSTR pszOutput)
return -1; return -1;
} }
TRACE("command: '%s'\n", psCmdP); TRACE("command: '%s'\n", psCmdP);
#ifdef HAVE_FORK
if (*psCmdP == '|') if (*psCmdP == '|')
{ {
int fds[2]; int fds[2];
...@@ -510,6 +511,7 @@ static int CreateSpoolFile(LPCSTR pszOutput) ...@@ -510,6 +511,7 @@ static int CreateSpoolFile(LPCSTR pszOutput)
TRACE("Need to execute a cmnd and pipe the output to it\n"); TRACE("Need to execute a cmnd and pipe the output to it\n");
} }
else else
#endif
{ {
char *buffer; char *buffer;
WCHAR psCmdPW[MAX_PATH]; WCHAR psCmdPW[MAX_PATH];
......
...@@ -92,6 +92,9 @@ ...@@ -92,6 +92,9 @@
/* Define to 1 if you have the <fontconfig/fontconfig.h> header file. */ /* Define to 1 if you have the <fontconfig/fontconfig.h> header file. */
#undef HAVE_FONTCONFIG_FONTCONFIG_H #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. */ /* Define to 1 if you have the `fpclass' function. */
#undef HAVE_FPCLASS #undef HAVE_FPCLASS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment