From 43148eaef2819eeda68e6846c03f0bd4672245a7 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Tue, 1 Mar 2016 16:23:12 +0100 Subject: [PATCH] Set _DATE_FMT to '%+' if not defined in libspl/timestamp.c Signed-off-by: Carlo Landmeter Signed-off-by: Brian Behlendorf Closes #4458 --- lib/libspl/timestamp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libspl/timestamp.c b/lib/libspl/timestamp.c index a4f4cf4e47..e2838da121 100644 --- a/lib/libspl/timestamp.c +++ b/lib/libspl/timestamp.c @@ -28,6 +28,10 @@ #include #include "statcommon.h" +#ifndef _DATE_FMT +#define _DATE_FMT "%+" +#endif + /* * Print timestamp as decimal reprentation of time_t value (-T u was specified) * or in date(1) format (-T d was specified).