浏览代码

Support forward compat for FreeBSD's procctl PROC_TRACE_CTL

Bryan Drewery 10 年之前
父节点
当前提交
8ff02f875c
共有 1 个文件被更改,包括 9 次插入0 次删除
  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 */