summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2009-12-24 17:07:20 +0000
committerAmaury Pouly <pamaury@rockbox.org>2009-12-24 17:07:20 +0000
commit081da63d097dd5a1de360abd6dcf5c0eb01ecdfc (patch)
tree51dd9f3cb98d5e353ab136ebba3af4faec55f968 /firmware
parenteeb1f3e25e5071cb338dd96cb9d30b6f9b6d45d2 (diff)
downloadrockbox-081da63d097dd5a1de360abd6dcf5c0eb01ecdfc.tar.gz
rockbox-081da63d097dd5a1de360abd6dcf5c0eb01ecdfc.tar.bz2
rockbox-081da63d097dd5a1de360abd6dcf5c0eb01ecdfc.zip
Add support for errno in plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24109 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/include/errno.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/include/errno.h b/firmware/include/errno.h
index 846cd0e339..3a923238fc 100644
--- a/firmware/include/errno.h
+++ b/firmware/include/errno.h
@@ -10,7 +10,11 @@
#ifndef _SYS_ERRNO_H_
+#ifdef PLUGIN
+#define errno (*rb->__errno)
+#else
extern int errno;
+#endif
#define EPERM 1 /* Not super-user */
#define ENOENT 2 /* No such file or directory */