char *wxGetUserHome( const wxString &user )
{
- struct passwd *who = NULL;
+ struct passwd *who = (struct passwd *) NULL;
if (user.IsNull() || (user== ""))
{
pid = (proc_data->pid > 0) ? proc_data->pid : -(proc_data->pid);
+ /* wait4 is not part of any standard, use at own risk
+ * not sure what wait4 does, but wait3 seems to be closest, whats a digit ;-)
+ * --- offer@sgi.com */
+#if !defined(__sgi)
wait4(proc_data->pid, NULL, 0, NULL);
+#else
+ wait3((int *) NULL, 0, (rusage *) NULL);
+#endif
close(source);
gdk_input_remove(proc_data->tag);
if (!sync) {
data->process = process;
} else {
- data->process = NULL;
+ data->process = (wxProcess *) NULL;
data->pid = -(data->pid);
while (data->pid != 0)
strncpy (tmp, command, sizeof(tmp) / sizeof(char) - 1);
tmp[sizeof (tmp) / sizeof (char) - 1] = '\0';
argv[argc++] = strtok (tmp, IFS);
- while ((argv[argc++] = strtok(NULL, IFS)) != NULL)
+ while ((argv[argc++] = strtok((char *) NULL, IFS)) != NULL)
/* loop */ ;
return wxExecute(argv, sync, process);
};