aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zfs-grsec/timestamp.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2012-09-04 11:57:37 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2012-09-04 11:57:37 +0200
commite4b7ac61ca59aa46de4a61f7114b1e8ec99ed691 (patch)
tree383c3e0097074a339612c29bac0d7982daa18952 /testing/zfs-grsec/timestamp.patch
parentc865b635abcf98e40b56bbf182f32351a70197cb (diff)
downloadaports-e4b7ac61ca59aa46de4a61f7114b1e8ec99ed691.tar.bz2
aports-e4b7ac61ca59aa46de4a61f7114b1e8ec99ed691.tar.xz
testing/zfs-grsec: new aport
Diffstat (limited to 'testing/zfs-grsec/timestamp.patch')
-rw-r--r--testing/zfs-grsec/timestamp.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/zfs-grsec/timestamp.patch b/testing/zfs-grsec/timestamp.patch
new file mode 100644
index 0000000000..68a612faaf
--- /dev/null
+++ b/testing/zfs-grsec/timestamp.patch
@@ -0,0 +1,16 @@
+uclibc does not support _DATE_FMT, it seems to be a libc only thing
+not sure this will work, will need to take a closer look.
+http://pubs.opengroup.org/onlinepubs/007904975/basedefs/langinfo.h.html
+http://sources.redhat.com/ml/libc-alpha/2000-10/msg00298.html
+
+--- ./lib/libspl/timestamp.c.orig
++++ ./lib/libspl/timestamp.c
+@@ -40,7 +40,7 @@
+
+ /* We only need to retrieve this once per invocation */
+ if (fmt == NULL)
+- fmt = nl_langinfo(_DATE_FMT);
++ fmt = nl_langinfo(D_FMT);
+
+ if (timestamp_fmt == UDATE) {
+ (void) printf("%ld\n", t);