Explorar o código

Support forward compat for FreeBSD's procctl PROC_TRACE_CTL

Bryan Drewery %!s(int64=10) %!d(string=hai) anos
pai
achega
8ff02f875c
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      src/shell.cc

+ 9 - 0
src/shell.cc

@@ -62,7 +62,16 @@
 #endif
 #ifdef HAVE_SYS_PROCCTL_H
 #include <sys/procctl.h>
+#ifndef PROC_TRACE_CTL
+#define PROC_TRACE_CTL		7
 #endif
+#ifndef PROC_TRACE_STATUS
+#define PROC_TRACE_STATUS	8
+#endif
+#ifndef PROC_TRACE_CTL_DISABLE
+#define PROC_TRACE_CTL_DISABLE	2
+#endif
+#endif	/* HAVE_SYS_PROCCTL_H */
 #ifdef HAVE_SYS_PTRACE_H
 # include <sys/ptrace.h>
 #endif /* HAVE_SYS_PTRACE_H */