From d877aac5f49c0c57168ed19b9b0247299e29f934 Mon Sep 17 00:00:00 2001 From: uz Date: Thu, 3 Jun 2010 21:12:23 +0000 Subject: [PATCH] Added EBADF since this is required for fileno(). git-svn-id: svn://svn.cc65.org/cc65/trunk@4696 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- asminc/errno.inc | 1 + include/errno.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/asminc/errno.inc b/asminc/errno.inc index 8f79d94e9..82d01cd3b 100644 --- a/asminc/errno.inc +++ b/asminc/errno.inc @@ -28,6 +28,7 @@ ENOSYS ; Function not implemented ESPIPE ; Illegal seek ERANGE ; Range error + EBADF ; Bad file number EUNKNOWN ; Unknown OS specific error - must be last! EMAX = EUNKNOWN ; Highest error code diff --git a/include/errno.h b/include/errno.h index 5dba2a1f7..c0e786623 100644 --- a/include/errno.h +++ b/include/errno.h @@ -74,7 +74,8 @@ extern int _errno; #define ENOSYS 13 /* Function not implemented */ #define ESPIPE 14 /* Illegal seek */ #define ERANGE 15 /* Range error */ -#define EUNKNOWN 16 /* Unknown OS specific error */ +#define EBADF 16 /* Bad file number */ +#define EUNKNOWN 17 /* Unknown OS specific error */