#define USG 1
#endif
+#define TIOCGETC_BROKEN 1
+#define TIOCGLTC_BROKEN 1
+
#include <sys/param.h>
#include <sys/time.h>
+/* Required by <sys/ptrace.h>. */
+#include <sys/siginfo.h>
+
#define HAVE_TERMIO
/*#define USIZE 2048*/
-#define NBPG NBPC
-#define UPAGES USIZE
+/*#define NBPG NBPC*/
+/* Might be defined in <sys/param.h>. I suspect this define was a relic
+ from before when BFD did core files. */
+/* #define UPAGES USIZE */
/* This is the amount to subtract from u.u_ar0
to get the offset in the core file of the register values. */
#define KERNEL_U_ADDR 0
+/* Like vprintf, but takes a a pointer to the args, laid out in order,
+ rather than a va_list. */
+/* Does this really work, or is it just enough to get this to compile? */
+#define VPRINTF(string, args) \
+ { \
+ __gnuc_va_list list; \
+ list.__va_arg = 0; \
+ list.__va_stk = (int *) args; \
+ list.__va_reg = (int *) args; \
+ vprintf (string, list); \
+ }