mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-25 04:54:59 +00:00
Fix getentropy after newlib upgrade
This commit is contained in:
@@ -27,7 +27,7 @@ FDMAN_OBJS = __descriptor_data_pool.o __descriptormap.o __fdman_init.o __fdman_g
|
||||
GLUE_OBJS = __dummy_passwd.o __psp_heap_blockid.o __psp_free_heap.o _fork.o _wait.o _open.o _close.o _read.o \
|
||||
_write.o _fstat.o _stat.o lstat.o access.o _fcntl.o _lseek.o chdir.o mkdir.o rmdir.o getdents.o _link.o _unlink.o \
|
||||
_rename.o _getpid.o _kill.o _sbrk.o _gettimeofday.o _times.o ftime.o clock_getres.o clock_gettime.o clock_settime.o \
|
||||
_isatty.o symlink.o truncate.o chmod.o fchmod.o fchmodat.o pathconf.o readlink.o utime.o fchown.o getentropy.o getpwuid.o \
|
||||
_isatty.o symlink.o truncate.o chmod.o fchmod.o fchmodat.o pathconf.o readlink.o utime.o fchown.o _getentropy.o getpwuid.o \
|
||||
fsync.o getpwnam.o getuid.o geteuid.o basename.o statvfs.o
|
||||
|
||||
INIT_OBJS = __libpthreadglue_init.o __libcglue_init.o __libcglue_deinit.o _exit.o abort.o exit.o
|
||||
|
||||
@@ -956,8 +956,8 @@ int fchown(int fd, uid_t owner, gid_t group)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef F_getentropy
|
||||
int getentropy(void *buffer, size_t length) {
|
||||
#ifdef F__getentropy
|
||||
int _getentropy(void *buffer, size_t length) {
|
||||
size_t i;
|
||||
SceKernelUtilsMt19937Context ctx;
|
||||
sceKernelUtilsMt19937Init(&ctx, time(NULL));
|
||||
|
||||
Reference in New Issue
Block a user