#include <errno.h>
#include <string.h>
#include <time.h>
#define OPENSSL_SYSNAME_MAC
#include "../sdk/modules/core/dependencies/openssl/src/crypto/o_dir.c"

#pragma comment(lib, "libScePosix_stub_weak.a")

void ENGINE_load_cryptodev(void) {
	/* This is a NOP on platforms without /dev/crypto */
	return;
}

char* getenv(char const* name) {
	return 0;
}

int getuid() {
	return 1;
}

struct tm* gmtime_r(time_t const* timep, struct tm* result) {
	struct tm* p = gmtime(timep);
	memcpy(result, p, sizeof(*p));
	return result;
}
