diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-10-30 15:07:11 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-10-30 15:10:08 -0400 |
commit | 98ba0310c4e352b5ff95d051e467f63f59f04a85 (patch) | |
tree | 61580eaa48eb5a0308780b73f0aa8b081c4ad016 /src/first.h | |
parent | c29268cd9ecf8c6f433515ba2f89330387daa715 (diff) | |
download | lighttpd-git-98ba0310c4e352b5ff95d051e467f63f59f04a85.tar.gz |
[core] explicitly include sys/cdefs.h
<sys/cdefs.h> might not be included in standard headers by musl libc
x-ref:
https://github.com/void-linux/void-packages/pull/33330/files#r725060227
https://github.com/void-linux/void-packages/pull/33330/files#r725060227
Diffstat (limited to 'src/first.h')
-rw-r--r-- | src/first.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/first.h b/src/first.h index defd1989..536a7e53 100644 --- a/src/first.h +++ b/src/first.h @@ -45,6 +45,12 @@ #include <sys/types.h> #include <stddef.h> +#ifdef __has_include +#if __has_include(<sys/cdefs.h>) +#include <sys/cdefs.h> +#endif +#endif + #ifndef __BEGIN_DECLS #ifdef __cplusplus #define __BEGIN_DECLS extern "C" { |