From bcd1485075aa72ba9418003f5cc27af2b049c51b Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sat, 10 Jun 2017 23:41:25 +1000 Subject: portability for sftp globbed ls sort by mtime Include replacement timespeccmp() for systems that lack it. Support time_t struct stat->st_mtime in addition to timespec stat->st_mtim, as well as unsorted fallback. --- includes.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'includes.h') diff --git a/includes.h b/includes.h index 497a038b2..0fd71792e 100644 --- a/includes.h +++ b/includes.h @@ -93,6 +93,9 @@ #ifdef HAVE_SYS_SYSMACROS_H # include /* For MIN, MAX, etc */ #endif +#ifdef HAVE_SYS_TIME_H +# include /* for timespeccmp if present */ +#endif #ifdef HAVE_SYS_MMAN_H #include /* for MAP_ANONYMOUS */ #endif -- cgit v1.2.3