add gethostname function for PSP

This commit is contained in:
Dima Pulkinen 2024-02-29 10:27:47 +02:00
parent fe6d7ee9c6
commit adc12c9101

View File

@ -9,6 +9,13 @@
#include <stdlib.h>
#include <string.h>
#ifdef PSP
int gethostname (char *__name, size_t __len) {
snprintf(__name, __len, "psp");
return 0;
}
#endif
/*=========================================================================*\
* Internal function prototypes.
\*=========================================================================*/