utils/pmx/pmx-src/libf2c/patch-07-MuslLibc
raw| 1 | |
| 2 | pmx does not compile with musl libc because the included |
| 3 | libf2c uses the nonstandard type __off64_t. The below patch, |
| 4 | which is adapted from current libf2c, fixes this. |
| 5 | |
| 6 | Felix Janda [mailto:[email protected]] |
| 7 | |
| 8 | |
| 9 | --- a/pmx-2.6.18/libf2c/sysdep1.h |
| 10 | +++ b/pmx-2.6.18/libf2c/sysdep1.h |
| 11 | @@ -10,7 +10,11 @@ |
| 12 | |
| 13 | #ifdef __linux__ |
| 14 | #define USE_LARGEFILE |
| 15 | +#ifdef __GLIBC__ |
| 16 | #define OFF_T __off64_t |
| 17 | +#else |
| 18 | +#define OFF_T off_t |
| 19 | +#endif |
| 20 | #endif |
| 21 | |
| 22 | #ifdef _AIX43 |
| 23 |