diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2021-09-28 22:30:28 -0700 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2021-09-28 22:30:28 -0700 |
commit | 87219b72cefefcf28c69c2d33a62e8c67ea0efce (patch) | |
tree | 5703701b9422e0c812b668491fa210fa707e908f | |
parent | 9eb56596eef5e55a596aa97ecaf8466ea559d05c (diff) | |
download | libcap-87219b72cefefcf28c69c2d33a62e8c67ea0efce.tar.gz |
Make capshdoc.h stand alone compile friendly.
Signed-off-by: Andrew G. Morgan <agm@google.com>
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r-- | progs/capshdoc.h | 4 | ||||
-rwxr-xr-x | progs/mkcapshdoc.sh | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/progs/capshdoc.h b/progs/capshdoc.h index 2ac6ecb..6e893a7 100644 --- a/progs/capshdoc.h +++ b/progs/capshdoc.h @@ -1,3 +1,5 @@ +#include <stdio.h> + #ifdef CAPSHDOC #error "don't include this twice" #endif @@ -372,7 +374,7 @@ static const char *explanation40[] = { /* cap_checkpoint_restore = 40 */ "also writing to ns_last_pid.", NULL }; -static const char **explanations[] = { +const char **explanations[] = { explanation0, explanation1, explanation2, diff --git a/progs/mkcapshdoc.sh b/progs/mkcapshdoc.sh index 705d526..84d5033 100755 --- a/progs/mkcapshdoc.sh +++ b/progs/mkcapshdoc.sh @@ -4,6 +4,8 @@ # with the checked in code in the progs directory. cat<<EOF +#include <stdio.h> + #ifdef CAPSHDOC #error "don't include this twice" #endif @@ -25,7 +27,7 @@ while [ -f "../doc/values/${x}.txt" ]; do done cat<<EOF -static const char **explanations[] = { +const char **explanations[] = { EOF let y=0 while [ "${y}" -lt "${x}" ]; do |