diff options
author | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-05-23 11:22:05 -0500 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-05-23 11:22:05 -0500 |
commit | 1888d833acac54bc81e87d2052385430472a65f6 (patch) | |
tree | 28de136a817df2805833fa5732b569e0a0ae5845 /bin/ls/cmp.c | |
parent | d50a3cfe49d6ab7aa1db8380dde1508cafe67b7d (diff) | |
download | userland-1888d833acac54bc81e87d2052385430472a65f6.tar.gz userland-1888d833acac54bc81e87d2052385430472a65f6.tar.bz2 userland-1888d833acac54bc81e87d2052385430472a65f6.tar.xz userland-1888d833acac54bc81e87d2052385430472a65f6.zip |
bin/ls: make buildable against libbsd
Diffstat (limited to 'bin/ls/cmp.c')
-rw-r--r-- | bin/ls/cmp.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/bin/ls/cmp.c b/bin/ls/cmp.c index 21d50e1..71f7e51 100644 --- a/bin/ls/cmp.c +++ b/bin/ls/cmp.c @@ -32,15 +32,6 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> -#ifndef lint -#if 0 -static char sccsid[] = "@(#)cmp.c 8.1 (Berkeley) 5/31/93"; -#else -__RCSID("$NetBSD: cmp.c,v 1.17 2003/08/07 09:05:14 agc Exp $"); -#endif -#endif /* not lint */ - #include <sys/types.h> #include <sys/stat.h> @@ -52,9 +43,9 @@ __RCSID("$NetBSD: cmp.c,v 1.17 2003/08/07 09:05:14 agc Exp $"); #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) || \ defined(_XOPEN_SOURCE) || defined(__NetBSD__) -#define ATIMENSEC_CMP(x, op, y) ((x)->st_atimensec op (y)->st_atimensec) -#define CTIMENSEC_CMP(x, op, y) ((x)->st_ctimensec op (y)->st_ctimensec) -#define MTIMENSEC_CMP(x, op, y) ((x)->st_mtimensec op (y)->st_mtimensec) +#define ATIMENSEC_CMP(x, op, y) ((x)->st_atim.tv_nsec op (y)->st_atim.tv_nsec) +#define CTIMENSEC_CMP(x, op, y) ((x)->st_ctim.tv_nsec op (y)->st_ctim.tv_nsec) +#define MTIMENSEC_CMP(x, op, y) ((x)->st_mtim.tv_nsec op (y)->st_mtim.tv_nsec) #else #define ATIMENSEC_CMP(x, op, y) \ ((x)->st_atimespec.tv_nsec op (y)->st_atimespec.tv_nsec) |