add gethostname function for PSP
This commit is contained in:
parent
fe6d7ee9c6
commit
adc12c9101
1 changed files with 7 additions and 0 deletions
|
@ -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.
|
||||
\*=========================================================================*/
|
||||
|
|
Loading…
Add table
Reference in a new issue