From ecd0a3f8c0d3b8e366e3bfb2937b858190ae7d40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Heusipp?= Date: Mon, 28 Oct 2024 14:44:01 +0000 Subject: [PATCH] Merged revision(s) 22021 from trunk/OpenMPT: [Fix] mpg123: Fix DJGPP compatibility. ........ git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.30@22023 56274372-70c3-4bfc-bfc3-4c3a0b034d27 --- include/mpg123/OpenMPT.txt | 1 + include/mpg123/src/compat/compat.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/mpg123/OpenMPT.txt b/include/mpg123/OpenMPT.txt index 7b6d72397fd..d8b9a6b40aa 100644 --- a/include/mpg123/OpenMPT.txt +++ b/include/mpg123/OpenMPT.txt @@ -6,6 +6,7 @@ The following changes have been made: * `ports/Xcode/config.h` has been modified to let the build system set `OPT_*`. * `ports/Xcode/config.h` has been modified to `#define HAVE_DIRENT_H`. + * `src/compat/compat.c` has been modified for DJGPP compatibility. * Modifications are marked by `// OpenMPT` or `/* OpenMPT */`. * Obviously, unnecessary folders and files have been removed. * For building, premake is used to generate Visual Studio project files. diff --git a/include/mpg123/src/compat/compat.c b/include/mpg123/src/compat/compat.c index 09983ca4dfd..2cc3760c04b 100644 --- a/include/mpg123/src/compat/compat.c +++ b/include/mpg123/src/compat/compat.c @@ -10,8 +10,10 @@ */ #include "config.h" +#if !defined(__DJGPP__) /* OpenMPT */ /* This source file does need _POSIX_SOURCE to get some sigaction. */ #define _POSIX_SOURCE +#endif /* OpenMPT */ #include "compat.h" #ifdef _MSC_VER