The ptrace.c file contains both of these includes:
#include <sys/ptrace.h>
...
#include <sys/user.h>
Those header files should provide the definitions that are missing in your build failure. Can you ensure that you have linux-libc-dev and libc6-dev installed?
The ptrace.c file contains both of these includes:
#include <sys/ptrace.h>
...
#include <sys/user.h>
Those header files should provide the definitions that are missing in your build failure. Can you ensure that you have linux-libc-dev and libc6-dev installed?