diff options
Diffstat (limited to 'Build/source/utils/pmx/pmx-2.7.0/libf2c')
-rw-r--r-- | Build/source/utils/pmx/pmx-2.7.0/libf2c/patch-07-MuslLibc | 23 | ||||
-rw-r--r-- | Build/source/utils/pmx/pmx-2.7.0/libf2c/signal_.c | 6 | ||||
-rw-r--r-- | Build/source/utils/pmx/pmx-2.7.0/libf2c/sysdep1.h | 4 |
3 files changed, 32 insertions, 1 deletions
diff --git a/Build/source/utils/pmx/pmx-2.7.0/libf2c/patch-07-MuslLibc b/Build/source/utils/pmx/pmx-2.7.0/libf2c/patch-07-MuslLibc new file mode 100644 index 00000000000..bcfc5489720 --- /dev/null +++ b/Build/source/utils/pmx/pmx-2.7.0/libf2c/patch-07-MuslLibc @@ -0,0 +1,23 @@ + +pmx does not compile with musl libc because the included +libf2c uses the nonstandard type __off64_t. The below patch, +which is adapted from current libf2c, fixes this. + +Felix Janda [mailto:felix.janda@posteo.de] + + +--- a/pmx-2.6.18/libf2c/sysdep1.h ++++ b/pmx-2.6.18/libf2c/sysdep1.h +@@ -10,7 +10,11 @@ + + #ifdef __linux__ + #define USE_LARGEFILE ++#ifdef __GLIBC__ + #define OFF_T __off64_t ++#else ++#define OFF_T off_t ++#endif + #endif + + #ifdef _AIX43 + diff --git a/Build/source/utils/pmx/pmx-2.7.0/libf2c/signal_.c b/Build/source/utils/pmx/pmx-2.7.0/libf2c/signal_.c index 3b0e6cfe98b..d4a2e6eae84 100644 --- a/Build/source/utils/pmx/pmx-2.7.0/libf2c/signal_.c +++ b/Build/source/utils/pmx/pmx-2.7.0/libf2c/signal_.c @@ -14,7 +14,11 @@ signal_(integer *sigp, sig_pf proc) int sig; sig = (int)*sigp; - return (ftnint)signal(sig, proc); +#ifdef _WIN64 + return (ftnint)(__int64)signal(sig, proc); +#else + return (ftnint)(long)signal(sig, proc); +#endif } #ifdef __cplusplus } diff --git a/Build/source/utils/pmx/pmx-2.7.0/libf2c/sysdep1.h b/Build/source/utils/pmx/pmx-2.7.0/libf2c/sysdep1.h index 4c026a240a1..29546db848e 100644 --- a/Build/source/utils/pmx/pmx-2.7.0/libf2c/sysdep1.h +++ b/Build/source/utils/pmx/pmx-2.7.0/libf2c/sysdep1.h @@ -10,7 +10,11 @@ #ifdef __linux__ #define USE_LARGEFILE +#ifdef __GLIBC__ #define OFF_T __off64_t +#else +#define OFF_T off_t +#endif #endif #ifdef _AIX43 |