#include "jcr.h"
int execvp_errors[] = {
- EACCES,
- ENOEXEC,
- EFAULT,
- EINTR,
- E2BIG,
- ENAMETOOLONG,
- ENOMEM,
-#ifndef WIN32
- ETXTBSY,
+ EACCES,
+ ENOEXEC,
+ EFAULT,
+ EINTR,
+ E2BIG,
+ ENAMETOOLONG,
+ ENOMEM,
+#ifndef HAVE_WIN32
+ ETXTBSY,
#endif
- ENOENT
+ ENOENT
};
int num_execvp_errors = (int)(sizeof(execvp_errors)/sizeof(int));
}
Dmsg1(800, "child status=%d\n", stat & ~b_errno_exit);
} else if (WIFSIGNALED(chldstatus)) { /* process died */
-#ifndef WIN32
+#ifndef HAVE_WIN32
stat = WTERMSIG(chldstatus);
#else
#warning "WTERMSIG undefined in Win32 !!!"
#endif
- Dmsg1(800, "Child died from signale %d\n", stat);
+ Dmsg1(800, "Child died from signal %d\n", stat);
stat |= b_errno_signal; /* exit signal returned */
}
}