Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
a82ba03b6f
1 muutettua tiedostoa jossa 11 lisäystä ja 0 poistoa
  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