perl/Module-Build-Tiny: update to 0.051 for Perl 5.36 and 5.38
[oi-userland.git] / components / shell / dash / patches / 01-configure-stat64.patch
blob1526f6a58b4e63059b8869cb60d6448d8d7f05b6
1 --- dash-0.5.12/configure.ac.orig 2022-12-11 07:33:43.000000000 +0000
2 +++ dash-0.5.12/configure.ac 2023-01-06 11:13:22.359719502 +0000
3 @@ -140,12 +140,13 @@
4 fi
6 dnl Check for stat64 (dietlibc/klibc).
7 -AC_CHECK_DECL(stat64, AC_CHECK_FUNC(stat64))
8 -if test "$ac_cv_func_stat64" != yes; then
9 - AC_DEFINE(fstat64, fstat, [64-bit operations are the same as 32-bit])
10 - AC_DEFINE(lstat64, lstat, [64-bit operations are the same as 32-bit])
11 - AC_DEFINE(stat64, stat, [64-bit operations are the same as 32-bit])
12 -fi
13 +AC_CHECK_DECL(stat64,, [
14 + AC_CHECK_FUNC(stat64,, [
15 + AC_DEFINE(fstat64, fstat, [64-bit operations are the same as 32-bit])
16 + AC_DEFINE(lstat64, lstat, [64-bit operations are the same as 32-bit])
17 + AC_DEFINE(stat64, stat, [64-bit operations are the same as 32-bit])
18 + ])
19 +])
21 AC_CHECK_FUNC(glob64,, [
22 AC_DEFINE(glob64_t, glob_t, [64-bit operations are the same as 32-bit])
23 @@ -155,12 +156,12 @@
26 dnl OS X apparently has stat64 but not open64.
27 -AC_CHECK_FUNC(open64,, [
28 - AC_DEFINE(open64, open, [64-bit operations are the same as 32-bit])
29 - AC_DEFINE(readdir64, readdir,
30 - [64-bit operations are the same as 32-bit])
31 - AC_DEFINE(dirent64, dirent,
32 - [64-bit operations are the same as 32-bit])
33 +AC_CHECK_DECL(stat64,, [
34 + AC_CHECK_FUNC(open64,, [
35 + AC_DEFINE(open64, open, [64-bit operations are the same as 32-bit])
36 + AC_DEFINE(readdir64, readdir, [64-bit operations are the same as 32-bit])
37 + AC_DEFINE(dirent64, dirent, [64-bit operations are the same as 32-bit])
38 + ])
41 dnl Check if struct stat has st_mtim.