Replace some uses of error with fprintf
error is not standard so it has no business being used in generic code.
The linux-gnu back end is useful for android, and that doesn't have that
interface either.
diff --git a/handle_event.c b/handle_event.c
index 7648248..73c118a 100644
--- a/handle_event.c
+++ b/handle_event.c
@@ -3,7 +3,6 @@
#include <assert.h>
#include <errno.h>
-#include <error.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
@@ -441,8 +440,8 @@
output_line(proc, "--- Called exec() ---");
if (process_exec(proc) < 0) {
- error(0, errno,
- "couldn't reinitialize process %d after exec", pid);
+ fprintf(stderr,
+ "couldn't reinitialize process %d after exec\n", pid);
goto untrace;
}