Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "defs.h"
+
+#ifdef HAVE_PTRACE_H
+# include <ptrace.h>
+#else
+# ifdef HAVE_SYS_PTRACE_H
+# include <sys/ptrace.h>
+# endif
+#endif
+
#include "frame.h"
#include "inferior.h"
#include "language.h"
#include <sys/file.h>
#include "gdb_stat.h"
-#ifndef NO_SYS_REG_H
+#ifdef HAVE_SYS_REG_H
#include <sys/reg.h>
#endif