Log Message: Look inside db.h if it belongs to db3 or db4 (as it does on some Linux distributions). Based on a patch by Min Sik Kim in PR 23944.