From 738298a9e887bf7220fed026cb872a544fd60431 Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Mon, 13 May 2024 12:47:10 +0100 Subject: [PATCH] libretro-common: fix implicit declarations strdup and realpath are only declared by glibc's headers if _XOPEN_SOURCE >= 500. --- desmume/src/libretro-common/file/file_path.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desmume/src/libretro-common/file/file_path.c b/desmume/src/libretro-common/file/file_path.c index f5814d307..f6d043d05 100644 --- a/desmume/src/libretro-common/file/file_path.c +++ b/desmume/src/libretro-common/file/file_path.c @@ -20,6 +20,8 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#define _XOPEN_SOURCE 500 /* For strdup, realpath */ + #include #include #include