From adc12c910167b696c30b09a3bacd46896eb3b6d2 Mon Sep 17 00:00:00 2001 From: Dima Pulkinen Date: Thu, 29 Feb 2024 10:27:47 +0200 Subject: [PATCH] add gethostname function for PSP --- src/inet.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/inet.c b/src/inet.c index 6d78e97..efcfe3f 100755 --- a/src/inet.c +++ b/src/inet.c @@ -9,6 +9,13 @@ #include #include +#ifdef PSP +int gethostname (char *__name, size_t __len) { + snprintf(__name, __len, "psp"); + return 0; +} +#endif + /*=========================================================================*\ * Internal function prototypes. \*=========================================================================*/