summaryrefslogtreecommitdiff
path: root/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-syscalls.c')
-rw-r--r--devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-syscalls.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-syscalls.c b/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-syscalls.c
new file mode 100644
index 000000000000..5d4e2b4cf464
--- /dev/null
+++ b/devel/psptoolchain-newlib/files/patch-newlib-libc-sys-psp-syscalls.c
@@ -0,0 +1,22 @@
+--- newlib/libc/sys/psp/syscalls.c.orig 1970-01-01 02:00:00.000000000 +0200
++++ newlib/libc/sys/psp/syscalls.c 2007-06-01 12:22:26.000000000 +0300
+@@ -0,0 +1,19 @@
++/*
++ * PSP Software Development Kit - http://www.pspdev.org
++ * -----------------------------------------------------------------------
++ * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
++ *
++ * syscalls.c - functions in systeam namespace goes here
++ *
++ * Copyright (c) 2007 Alper Akcan "anhanguera" <distchx@yahoo.com>
++ *
++ */
++
++#include <stdio.h>
++
++int __psp_set_errno (int code);
++
++time_t _times (time_t *t)
++{
++ return __psp_set_errno(sceKernelLibcTime(t));
++}