1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / inftarg.c
index 921cbbe6718e017970583e990c5a554be7614d97..592b5d90aafb82269cb7779469df3f9da665907b 100644 (file)
@@ -42,7 +42,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 /* "wait.h" fills in the gaps left by <wait.h> */
 #include "wait.h"
-#include <sys/unistd.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
 
 extern struct symtab_and_line *
 child_enable_exception_callback PARAMS ((enum exception_event_kind, int));
@@ -569,7 +571,7 @@ child_create_inferior (exec_file, allargs, env)
   else
     shell_file = tryname;
 
-  fork_inferior (exec_file, allargs, env, ptrace_me, ptrace_him, pre_fork_inferior, shell_file);
+  fork_inferior (exec_file, allargs, env, ptrace_me, ptrace_him, pre_fork_inferior, NULL);
 #else
  fork_inferior (exec_file, allargs, env, ptrace_me, ptrace_him, NULL, NULL);
 #endif
This page took 0.023293 seconds and 4 git commands to generate.