]> git.pld-linux.org Git - packages/busybox.git/blob - x32.patch
rel 8; enable builtin sleep for initrd
[packages/busybox.git] / x32.patch
1 diff -ur busybox-1.35.0.orig/include/libbb.h busybox-1.35.0/include/libbb.h
2 --- busybox-1.35.0.orig/include/libbb.h 2021-12-26 16:53:26.000000000 +0000
3 +++ busybox-1.35.0/include/libbb.h      2022-04-03 22:02:20.060835065 +0000
4 @@ -312,11 +312,19 @@
5   * gcc will throw warnings on printf("%d", off_t)... Have to use %ld etc.
6   */
7  # if UINT_MAX == ULONG_MAX
8 +#ifdef __ILP32__
9 +typedef unsigned long long uoff_t;
10 +#  define XATOOFF(a) xatoull_range((a), 0, LLONG_MA_STRTOOFF bb_strX)
11 +#  define BBtoull
12 +#  define STRTOOFF strtoull
13 +#  define OFF_FMT "ll"
14 +#else
15  typedef unsigned long uoff_t;
16  #  define XATOOFF(a) xatoi_positive(a)
17  #  define BB_STRTOOFF bb_strtou
18  #  define STRTOOFF strtol
19  #  define OFF_FMT "l"
20 +#endif
21  # else
22  typedef unsigned long uoff_t;
23  #  define XATOOFF(a) xatoul_range((a), 0, LONG_MAX)
This page took 0.075064 seconds and 3 git commands to generate.