# No fmemopen() in OmniOS. Implement a hack that emulates it... diff -u -r samba-4.12.0rc1/source4/utils/oLschema2ldif/test.c samba-4.12.0rc1-liu/source4/utils/oLschema2ldif/test.c --- samba-4.12.0rc1/source4/utils/oLschema2ldif/test.c tis jan. 21 15:10:42 2020 +++ samba-4.12.0rc1-liu/source4/utils/oLschema2ldif/test.c tors jan. 23 21:41:20 2020 @@ -51,6 +51,17 @@ return 0; } +static FILE *fmemopen(const char *data, size_t len, const char *mode) { + FILE *fp = tmpfile(); + if (!fp) + return NULL; + + fwrite(data, 1, len, fp); + fflush(fp); + rewind(fp); + return fp; +} + static struct schema_conv process_data_blob(void **state, DATA_BLOB input) { struct test_ctx *test_ctx =