[v2,2/2] newlib/libc/include/sys/tree.h: Add deprecation warning

Message ID 1723833438-29626-2-git-send-email-joel@rtems.org
State New
Headers
Series [v2,1/2] libc/include/sys/tree.h: Re-add sys/tree.h |

Commit Message

Joel Sherrill Aug. 16, 2024, 6:37 p.m. UTC
  ---
 newlib/libc/include/sys/tree.h | 4 ++++
 1 file changed, 4 insertions(+)
  

Patch

diff --git a/newlib/libc/include/sys/tree.h b/newlib/libc/include/sys/tree.h
index 2d3cec0..7f12d6b 100644
--- a/newlib/libc/include/sys/tree.h
+++ b/newlib/libc/include/sys/tree.h
@@ -32,6 +32,10 @@ 
 #ifndef	_SYS_TREE_H_
 #define	_SYS_TREE_H_
 
+#ifndef __PERMIT_DEPRECATED_SYS_TREE_H 
+#warning "sys/tree.h is deprecated and will be removed in the future."
+#endif
+
 #include <sys/cdefs.h>
 
 /*