From 18269018e20d2cb7e794caf135d355cc9c8a7a43 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 25 Jul 2024 10:58:00 -0600 Subject: [PATCH] freebsd: Only define __deprecated if it's not already defined FreeBSD's sys/cdefs.h is about to start defining __deprecated. So, only define it away if it's not already defined for older branches, etc. Sponsored-by: Netflix Signed-off-by: Warner Losh --- include/os/freebsd/linux/compiler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/os/freebsd/linux/compiler.h b/include/os/freebsd/linux/compiler.h index b408b77c74..6d1beca5a8 100644 --- a/include/os/freebsd/linux/compiler.h +++ b/include/os/freebsd/linux/compiler.h @@ -50,7 +50,9 @@ #define __cond_lock(x, c) (c) #define __bitwise #define __devinitdata +#ifndef __deprecated #define __deprecated +#endif #define __init #define __initconst #define __devinit