From 3da3fe770ade636d14438417b2c50b57658d1055 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Wed, 28 Aug 2019 09:39:13 +0900 Subject: 44709: incluce sys/capability.h only if HAVE_CAP_GET_PROC is defined --- ChangeLog | 5 +++++ Src/zsh_system.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 366087122..c34a50202 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-08-28 Jun-ichi Takimoto + + * 44709: Src/zsh_system.h: incluce sys/capability.h only if + HAVE_CAP_GET_PROC is defined + 2019-08-27 Peter Stephenson * Sebastian: 44712: configure.ac: prefer any form of ncurses to diff --git a/Src/zsh_system.h b/Src/zsh_system.h index e7d529b6e..85e198f2e 100644 --- a/Src/zsh_system.h +++ b/Src/zsh_system.h @@ -522,7 +522,7 @@ struct timespec { # define RLIMIT_VMEM RLIMIT_AS #endif -#ifdef HAVE_SYS_CAPABILITY_H +#if defined(HAVE_SYS_CAPABILITY_H) && defined(HAVE_CAP_GET_PROC) # include #endif -- cgit 1.4.1