diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2021-02-01 15:00:16 -0800 |
---|---|---|
committer | Dave Watson <dade.watson@gmail.com> | 2021-02-17 09:14:00 -0800 |
commit | 077cf12d0cc64e3d0a9b2d889d78d47e501aab1c (patch) | |
tree | af2bbec6d6dffa3603b118c6678f79b37b0ea234 | |
parent | 3ad1017bdb3508cb0d4cce4d6e3dccd4ab71816e (diff) | |
download | libunwind-077cf12d0cc64e3d0a9b2d889d78d47e501aab1c.tar.gz |
Fix Clang builds
While cross-compiling strace against libunwind for ARM, the configure
script of strace failed with:
libunwind-ptrace.h:40:27: error: a parameter list without types is only
allowed in a function definition
it turns out that we do not have a definition for what pid_t should be,
so include sys/types.h to remedy that.
-rw-r--r-- | include/libunwind-ptrace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libunwind-ptrace.h b/include/libunwind-ptrace.h index 801325c4..916dbd24 100644 --- a/include/libunwind-ptrace.h +++ b/include/libunwind-ptrace.h @@ -27,6 +27,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #define libunwind_ptrace_h #include <libunwind.h> +#include <sys/types.h> #if defined(__cplusplus) || defined(c_plusplus) extern "C" { |