]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
time: Sort header includes
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 10 Jun 2026 18:08:33 +0000 (20:08 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 12 Jun 2026 21:32:41 +0000 (23:32 +0200)
While at it, add header checks.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_time.c

index 3352c809bd11e8458a3810bc914d48fdb92f52e7..0f02345f37cbd504ab12fffe7891e4cf9ef07855 100644 (file)
  */
 
 #include "archive_platform.h"
-#include "archive_private.h"
-#include "archive_time_private.h"
+
+#ifdef HAVE_LIMITS_H
 #include <limits.h>
+#endif
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
+#endif
+#ifdef HAVE_STRING_H
 #include <string.h>
+#endif
+
+#include "archive_private.h"
+#include "archive_time_private.h"
 
 #define NTFS_EPOC_TIME ARCHIVE_LITERAL_ULL(11644473600)
 #define NTFS_TICKS ARCHIVE_LITERAL_ULL(10000000)