Bug 1512541 Comment 15 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Funny thing, fixing this breaks Android with:
```
third_party/rust/lmdb-sys/lmdb/libraries/liblmdb/mdb.c:4853:53: error: use of undeclared identifier 'PTHREAD_MUTEX_ROBUST'
```

which is because mdb.c relies on the ANDROID macro, which is not something the compiler sets, __ANDROID__ is (and it works now because we do set ANDROID from mozilla-config.h). Interestingly, this was fixed upstream in http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=commit;h=0a954f1a67410dceb0fafe202bd6c2f2f409cb4a but didn't make it into a release.
Funny thing, fixing this breaks Android with:
```
third_party/rust/lmdb-sys/lmdb/libraries/liblmdb/mdb.c:4853:53: error: use of undeclared identifier 'PTHREAD_MUTEX_ROBUST'
```

which is because mdb.c relies on the `ANDROID` macro, which is not something the compiler sets, `__ANDROID__` is (and it works now because we do set `ANDROID` from mozilla-config.h). Interestingly, this was fixed upstream in http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=commit;h=0a954f1a67410dceb0fafe202bd6c2f2f409cb4a but didn't make it into a release.

Back to Bug 1512541 Comment 15