Update README section about dlfcn.h
authorFredrik Fornwall <fredrik@fornwall.net>
Sat, 23 Apr 2016 21:50:20 +0000 (17:50 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Sat, 23 Apr 2016 21:50:20 +0000 (17:50 -0400)
README.md

index a750b17..971d589 100644 (file)
--- a/README.md
+++ b/README.md
@@ -125,16 +125,17 @@ contains these and may be used by all packages.
 
 dlopen() and RTLD&#95;&#42; flags
 =================================
-&lt;dlfcn.h&gt; declares
+&lt;dlfcn.h&gt; originally declares
 
     enum { RTLD_NOW=0, RTLD_LAZY=1, RTLD_LOCAL=0, RTLD_GLOBAL=2,       RTLD_NOLOAD=4}; // 32-bit
     enum { RTLD_NOW=2, RTLD_LAZY=1, RTLD_LOCAL=0, RTLD_GLOBAL=0x00100, RTLD_NOLOAD=4}; // 64-bit
 
 These differs from glibc ones in that
 
-1. They are not preprocessor #define:s so cannot be checked for with #ifdef RTLD_GLOBAL (dln.c in ruby does this)
+1. They are not preprocessor #define:s so cannot be checked for with `#ifdef RTLD_GLOBAL`. Termux patches this to
+   #define values for compatibility with several packages.
 2. They differ in value from glibc ones, so cannot be hardcoded in files (DLFCN.py in python does this)
-3. They are missing some values (RTLD_BINDING_MASK, RTLD_NOLOAD, ...)
+3. They are missing some values (`RTLD_BINDING_MASK`, `RTLD_NOLOAD`, ...)
 
 
 RPATH, LD_LIBRARY_PATH AND RUNPATH