aboutsummaryrefslogtreecommitdiffstats
path: root/main/zfs-grsec/0005-Set-_DATE_FMT-to-if-not-defined-in-libspl-timestamp..patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-06-03 16:51:22 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2016-06-03 16:51:27 +0200
commitdb8a6e96bd036f494517a21fd52dcf5065a13624 (patch)
tree80244cd9331a94eefba462a93fe4cbb33e26f436 /main/zfs-grsec/0005-Set-_DATE_FMT-to-if-not-defined-in-libspl-timestamp..patch
parent1bdad196b644074c06aa25aee4f46d2a69b09757 (diff)
downloadaports-db8a6e96bd036f494517a21fd52dcf5065a13624.tar.bz2
aports-db8a6e96bd036f494517a21fd52dcf5065a13624.tar.xz
main/zfs: move zfs and deps to main
Diffstat (limited to 'main/zfs-grsec/0005-Set-_DATE_FMT-to-if-not-defined-in-libspl-timestamp..patch')
-rw-r--r--main/zfs-grsec/0005-Set-_DATE_FMT-to-if-not-defined-in-libspl-timestamp..patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/main/zfs-grsec/0005-Set-_DATE_FMT-to-if-not-defined-in-libspl-timestamp..patch b/main/zfs-grsec/0005-Set-_DATE_FMT-to-if-not-defined-in-libspl-timestamp..patch
new file mode 100644
index 0000000000..37c5a33ffd
--- /dev/null
+++ b/main/zfs-grsec/0005-Set-_DATE_FMT-to-if-not-defined-in-libspl-timestamp..patch
@@ -0,0 +1,31 @@
+From f8c3aff70bbea57527ee301c16b94dcc8adc4cc9 Mon Sep 17 00:00:00 2001
+From: Carlo Landmeter <clandmeter@gmail.com>
+Date: Tue, 1 Mar 2016 16:23:12 +0100
+Subject: [PATCH 5/8] Set _DATE_FMT to '%+' if not defined in
+ libspl/timestamp.c
+
+Signed-off-by: Carlo Landmeter <clandmeter@gmail.com>
+Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
+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 a4f4cf4..e2838da 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).
+--
+2.7.4
+