projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1952 from esdrubal/proc_name
[mono.git]
/
eglib
/
src
/
gspawn.c
diff --git
a/eglib/src/gspawn.c
b/eglib/src/gspawn.c
index a01904e3e3440cffe35c1ce0383382d9e8ceb227..4d0bf9e8eca919c44d609095fef62b01ada0f9a9 100644
(file)
--- a/
eglib/src/gspawn.c
+++ b/
eglib/src/gspawn.c
@@
-248,6
+248,9
@@
g_spawn_command_line_sync (const gchar *command_line,
GError **error)
{
#ifdef G_OS_WIN32
GError **error)
{
#ifdef G_OS_WIN32
+#elif !defined (HAVE_FORK) || !defined (HAVE_EXECV)
+ fprintf (stderr, "g_spawn_command_line_sync not supported on this platform\n");
+ return FALSE;
#else
pid_t pid;
gchar **argv;
#else
pid_t pid;
gchar **argv;
@@
-344,6
+347,9
@@
g_spawn_async_with_pipes (const gchar *working_directory,
GError **error)
{
#ifdef G_OS_WIN32
GError **error)
{
#ifdef G_OS_WIN32
+#elif !defined (HAVE_FORK) || !defined (HAVE_EXECVE)
+ fprintf (stderr, "g_spawn_async_with_pipes is not supported on this platform\n");
+ return FALSE;
#else
pid_t pid;
int info_pipe [2];
#else
pid_t pid;
int info_pipe [2];