#include "wvtest.h"
-#include "wvcrash.h"
-#include "wvstring.h"
+#ifdef HAVE_WVCRASH
+# include "wvcrash.h"
+#endif
#include <stdlib.h>
#include <stdio.h>
#ifdef _WIN32
int main(int argc, char **argv)
{
-#ifdef _WIN32
+ char buf[200];
+#if defined(_WIN32) && defined(HAVE_WVCRASH)
setup_console_crash();
#endif
WVPASS(startfd == endfd);
#ifndef _WIN32
if (startfd != endfd)
- system(WvString("ls -l /proc/%s/fd", getpid()));
+ {
+ sprintf(buf, "ls -l /proc/%d/fd", getpid());
+ system(buf);
+ }
#endif
}