Maybe worth trying to enclose those functions like in the ticket you referenced above, respectively the lines with `+`:
``` +#ifndef HAVE_BIO_GET_DATA void *BIO_get_data(BIO *bio) { return bio->ptr; } +#endif +#ifndef HAVE_BIO_SET_DATA void BIO_set_data(BIO *bio, void *ptr) { bio->ptr = ptr; } +#endif +#ifndef HAVE_BIO_SET_INIT void BIO_set_init(BIO *bio, int init) { bio->init = init; } +#endif ```