소스 검색

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 */