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 <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef PSP
|
||||||
|
int gethostname (char *__name, size_t __len) {
|
||||||
|
snprintf(__name, __len, "psp");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*=========================================================================*\
|
/*=========================================================================*\
|
||||||
* Internal function prototypes.
|
* Internal function prototypes.
|
||||||
\*=========================================================================*/
|
\*=========================================================================*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue