about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
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