From 9096ba886c2c72055d93b7cf9f8f76a2c721c0bd Mon Sep 17 00:00:00 2001 From: aliaspider Date: Thu, 2 Mar 2017 12:10:30 +0100 Subject: [PATCH] define PATH_MAX if needed. --- frontend/libretro.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/libretro.c b/frontend/libretro.c index 87dcb2dd..4d56356a 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -932,6 +932,10 @@ static struct retro_disk_control_callback disk_control = { #define SLASH '/' #endif +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + static char base_dir[PATH_MAX]; static bool read_m3u(const char *file) -- 2.39.5