1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-02-27 14:25:48 +01:00

Remove old versions of mc

This commit is contained in:
2024-09-15 07:26:06 +02:00
parent f1903d976e
commit d56038fd69
5 changed files with 0 additions and 326 deletions

View File

@@ -1,35 +0,0 @@
START_TEST uses the variable name _i, so GCC complains about redefining it with
a different type here.
--- mc-4.8.28/tests/lib/strutil/filevercmp.c 2022-03-20 10:02:47.000000000 +0000
+++ mc-4.8.28/tests/lib/strutil/filevercmp.c 2022-03-27 15:31:19.812120141 +0100
@@ -353,20 +353,20 @@
START_TEST (filevercmp_test5)
/* *INDENT-ON* */
{
- size_t _i;
+ size_t ii;
- for (_i = 0; _i < filevercmp_test_ds5_len; _i++)
- for (; filevercmp_test_ds5[_i] != NULL; _i++)
+ for (ii = 0; ii < filevercmp_test_ds5_len; ii++)
+ for (; filevercmp_test_ds5[ii] != NULL; ii++)
{
- const char *i = filevercmp_test_ds5[_i];
- size_t _j;
+ const char *i = filevercmp_test_ds5[ii];
+ size_t jj;
- for (_j = _i; filevercmp_test_ds5[_j] != NULL; _j++)
+ for (jj = ii; filevercmp_test_ds5[jj] != NULL; jj++)
{
- const char *j = filevercmp_test_ds5[_j];
+ const char *j = filevercmp_test_ds5[jj];
- ck_assert_int_eq (test_filevercmp (i, j), 0);
- ck_assert_int_eq (test_filevercmp (j, i), 0);
+ ck_assert_int_eq (test_filevercmp (i, j), 0);
+ ck_assert_int_eq (test_filevercmp (j, i), 0);
}
}
}

View File

@@ -1,24 +0,0 @@
From a2dbad461b8a63630f9ad7cfa36b6613e85a91cb Mon Sep 17 00:00:00 2001
From: Florian Weimer <fweimer@redhat.com>
Date: Sun, 5 Feb 2023 18:38:37 +0100
Subject: [PATCH] autoconf: Fix C99 compatibility issue in mc_GET_FS_INFO check
Content-type: text/plain
Include <fcntl.h> for the declaration of posix_fallocate. This
avoids an implicit function declaration and build issues with future
compilers.
Signed-off-by: Florian Weimer <fweimer@redhat.com>
--- a/m4.include/mc-get-fs-info.m4
+++ b/m4.include/mc-get-fs-info.m4
@@ -8,6 +8,7 @@ AC_DEFUN([gl_POSIX_FALLOCATE], [
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#define _XOPEN_SOURCE 600
#include <stdlib.h>
+ #include <fcntl.h>
#if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7)
possibly broken posix_fallocate
#endif
--
2.39.1