From cf78382bc099c9fa643b76fd9de8ae26e8c04897 Mon Sep 17 00:00:00 2001 From: Michael Tuexen <tuexen@fh-muenster.de> Date: Tue, 7 Jun 2016 00:00:29 +0200 Subject: [PATCH] Fix compilation on Linux. Sponsored by Netflix --- gtests/net/packetdrill/packetdrill.c | 3 +++ gtests/net/packetdrill/run_system_call.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gtests/net/packetdrill/packetdrill.c b/gtests/net/packetdrill/packetdrill.c index 990e0a45..8e03b4fd 100644 --- a/gtests/net/packetdrill/packetdrill.c +++ b/gtests/net/packetdrill/packetdrill.c @@ -33,6 +33,9 @@ #endif #include <stdlib.h> #include <string.h> +#if defined(linux) +#include <sys/prctl.h> +#endif #include <unistd.h> #include "config.h" #include "parse.h" diff --git a/gtests/net/packetdrill/run_system_call.c b/gtests/net/packetdrill/run_system_call.c index b8eddd9e..c69ca7be 100644 --- a/gtests/net/packetdrill/run_system_call.c +++ b/gtests/net/packetdrill/run_system_call.c @@ -39,6 +39,9 @@ #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> +#if defined(linux) +#include <sys/prctl.h> +#endif #if defined(__FreeBSD__) #include <kvm.h> #include <sys/sysctl.h> -- GitLab