summaryrefslogtreecommitdiff
path: root/compat/time32/ctime32_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/time32/ctime32_r.c')
-rw-r--r--compat/time32/ctime32_r.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/compat/time32/ctime32_r.c b/compat/time32/ctime32_r.c
new file mode 100644
index 00000000..e1ad2e28
--- /dev/null
+++ b/compat/time32/ctime32_r.c
@@ -0,0 +1,7 @@
+#include "time32.h"
+#include <time.h>
+
+char *__ctime32_r(time32_t *t, char *buf)
+{
+ return ctime_r(&(time_t){*t}, buf);
+}