summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2025-06-11 16:39:01 +0000
committerBrooks Davis <brooks@FreeBSD.org>2025-06-11 16:39:01 +0000
commitb01e971fd39d10273a387788019457792873e81c (patch)
tree847f15cc09946cadd549fef1e1e186f7ab631aa8 /include
parent8ac82ba19efbaeec065621215c3843f054fa419e (diff)
Don't rely on sys/_types.h including sys/cdefs.h
These headers relied in __BEGIN_DECS/__END_DECLS being defined when sys/_types.h was included, but there's not a requirement that this be the case. Reviewed by: imp Exp-run by: antoine (PR 286274) Pull Request: https://github.com/freebsd/freebsd-src/pull/1595
Diffstat (limited to 'include')
-rw-r--r--include/dlfcn.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dlfcn.h b/include/dlfcn.h
index 89ec43b332e9..9a4ac0faf786 100644
--- a/include/dlfcn.h
+++ b/include/dlfcn.h
@@ -32,6 +32,7 @@
#ifndef _DLFCN_H_
#define _DLFCN_H_
+#include <sys/cdefs.h>
#include <sys/_types.h>
/*