From 68c6e7d6b2217079c1c8db1f60e79dee05a66efb Mon Sep 17 00:00:00 2001 From: Dima Pulkinen Date: Thu, 29 Feb 2024 11:52:39 +0200 Subject: [PATCH] use psp-un header when building for psp --- src/serial.c | 4 ++++ src/unixdgram.c | 4 ++++ src/unixstream.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/serial.c b/src/serial.c index 21485d3..688f132 100644 --- a/src/serial.c +++ b/src/serial.c @@ -10,7 +10,11 @@ #include "unix.h" #include +#ifndef PSP #include +#else +#include "psp-un.h" +#endif /* Reuses userdata definition from unix.h, since it is useful for all diff --git a/src/unixdgram.c b/src/unixdgram.c index 69093d7..20c9829 100644 --- a/src/unixdgram.c +++ b/src/unixdgram.c @@ -12,7 +12,11 @@ #include #include +#ifndef PSP #include +#else +#include "psp-un.h" +#endif #define UNIXDGRAM_DATAGRAMSIZE 8192 diff --git a/src/unixstream.c b/src/unixstream.c index 02aced9..b5b0b8a 100644 --- a/src/unixstream.c +++ b/src/unixstream.c @@ -10,7 +10,11 @@ #include "unixstream.h" #include +#ifndef PSP #include +#else +#include "psp-un.h" +#endif /*=========================================================================*\ * Internal function prototypes