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);
          |                      ^~~~
master
Eric Biggers 2024-02-19 11:50:45 -08:00
parent f27f924c1e
commit a9f42a1556
1 changed files with 2 additions and 1 deletions

View File

@ -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"])])