diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2019-08-10 10:51:57 -0700 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-08-20 23:56:50 +0000 |
commit | 5e74d0e80c7e68784f38c462b037ba48a43222b3 (patch) | |
tree | 9a99418d6b6ca9e7cd79d279ee7b33b0cbbcf360 /src/3rdparty/forkfd/forkfd.h | |
parent | 2cddaf0071d647221ea4936da22bca86cd523799 (diff) |
forkfd: fix compilation in C mode without precompiled headers
Missing one "struct" and one #include <sys/wait.h> for
struct rusage.
Change-Id: Iec9c051acd73484c8d94fffd15b9a1274703afca
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/3rdparty/forkfd/forkfd.h')
-rw-r--r-- | src/3rdparty/forkfd/forkfd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/3rdparty/forkfd/forkfd.h b/src/3rdparty/forkfd/forkfd.h index 958321c299..eb121de593 100644 --- a/src/3rdparty/forkfd/forkfd.h +++ b/src/3rdparty/forkfd/forkfd.h @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2016 Intel Corporation. +** Copyright (C) 2019 Intel Corporation. ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and associated documentation files (the "Software"), to deal @@ -27,6 +27,7 @@ #include <fcntl.h> #include <stdint.h> +#include <sys/wait.h> #include <unistd.h> // to get the POSIX flags #if _POSIX_SPAWN > 0 @@ -48,7 +49,7 @@ struct forkfd_info { }; int forkfd(int flags, pid_t *ppid); -int forkfd_wait(int ffd, forkfd_info *info, struct rusage *rusage); +int forkfd_wait(int ffd, struct forkfd_info *info, struct rusage *rusage); int forkfd_close(int ffd); #if _POSIX_SPAWN > 0 |