aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libspl
diff options
context:
space:
mode:
authorCarlo Landmeter <[email protected]>2016-03-01 16:23:12 +0100
committerBrian Behlendorf <[email protected]>2016-03-29 18:33:17 -0700
commit43148eaef2819eeda68e6846c03f0bd4672245a7 (patch)
tree7addf4ebeb5717404932197534aa9192b695bf0b /lib/libspl
parent1a01c207cbf12a4a7934e327b94104ed4f8edb47 (diff)
Set _DATE_FMT to '%+' if not defined in libspl/timestamp.c
Signed-off-by: Carlo Landmeter <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #4458
Diffstat (limited to 'lib/libspl')
-rw-r--r--lib/libspl/timestamp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libspl/timestamp.c b/lib/libspl/timestamp.c
index a4f4cf4e4..e2838da12 100644
--- a/lib/libspl/timestamp.c
+++ b/lib/libspl/timestamp.c
@@ -28,6 +28,10 @@
#include <langinfo.h>
#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).