forked from len0rd/rockbox
Add support for errno in plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24109 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
eeb1f3e25e
commit
081da63d09
3 changed files with 7 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue