about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2019-08-28 09:39:13 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2019-08-28 09:39:13 +0900
commit3da3fe770ade636d14438417b2c50b57658d1055 (patch)
tree5c2fadcd3777b3a5cf1c39d2fb8858a8db4d449c /Src
parent2e87c3f3fb4a46fc1341c9c342652ae96acd6228 (diff)
downloadzsh-3da3fe770ade636d14438417b2c50b57658d1055.tar.gz
zsh-3da3fe770ade636d14438417b2c50b57658d1055.tar.xz
zsh-3da3fe770ade636d14438417b2c50b57658d1055.zip
44709: incluce sys/capability.h only if HAVE_CAP_GET_PROC is defined
Diffstat (limited to 'Src')
-rw-r--r--Src/zsh_system.h2
1 files changed, 1 insertions, 1 deletions
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 <sys/capability.h>
 #endif