mirror of https://github.com/asterisk/asterisk
When DEBUG_THREADS is defined, lock.h uses strerror(), which is defined in the libc string.h file, to print warning messages. If the including source file doesn't include string.h then strerror() won't be found and and compile errors will be thrown. Since lock.h depends on this, string.h is now included from there if DEBUG_THREADS is defined. This way, including source files don't have to worry about it.22
parent
a3c65fc5d1
commit
13d2dd8535
Loading…
Reference in new issue