浏览代码

add UCLIBC_STRICT_HEADERS config option

Add config option to disable the visibility of structures/constants
that should not be visible unless a feature is enabled.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger 13 年之前
父节点
当前提交
a82ba03b6f
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      extra/Configs/Config.in

+ 11 - 0
extra/Configs/Config.in

@@ -657,6 +657,17 @@ config UCLIBC_SUSV4_LEGACY
 
 	  WARNING! ABI incompatibility.
 
+config UCLIBC_STRICT_HEADERS
+	bool "Enable structures and constants for unsupported features"
+	default n
+	help
+	  Enable structures and constants in headers that should not be used,
+	  because the respective feature is disabled.
+
+	  WARNING! enabling this option requires to patch many faulty apps,
+	  since they make (wrongly) use of these structures/constants,
+	  although the feature was disabled.
+
 config UCLIBC_HAS_STUBS
 	bool "Provide stubs for unavailable functionality"
 	default n