From a9f42a15561a4507c8393c08bdca3afed73972ac Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Mon, 19 Feb 2024 11:50:45 -0800 Subject: [PATCH] Fix build error with gcc 14 Ensure that time.h gets included. This fixes the following build error: In file included from /usr/include/ntfs-3g/inode.h:35, from /usr/include/ntfs-3g/attrib.h:33, from src/system_compression.c:64: /usr/include/ntfs-3g/ntfstime.h: In function 'ntfs_current_time': /usr/include/ntfs-3g/ntfstime.h:125:22: error: implicit declaration of function 'time' [-Wimplicit-function-declaration] 125 | now.tv_sec = time((time_t*)NULL); | ^~~~ --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0cc0a55..7b4362f 100644 --- a/configure.ac +++ b/configure.ac @@ -21,7 +21,8 @@ AC_CHECK_HEADERS([errno.h \ stddef.h \ stdlib.h \ string.h \ - sys/types.h]) + sys/types.h \ + time.h]) PKG_CHECK_MODULES([LIBNTFS_3G], [libntfs-3g >= 2017.3.23], [], [AC_MSG_ERROR(["Unable to find libntfs-3g"])])