summaryrefslogtreecommitdiff
path: root/src/first.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-10-30 15:07:11 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-10-30 15:10:08 -0400
commit98ba0310c4e352b5ff95d051e467f63f59f04a85 (patch)
tree61580eaa48eb5a0308780b73f0aa8b081c4ad016 /src/first.h
parentc29268cd9ecf8c6f433515ba2f89330387daa715 (diff)
downloadlighttpd-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.h6
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" {