summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-04-15 18:53:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-04-15 18:53:35 +0000
commit02d46fa94b154ef8578199b234d54e5b3f995454 (patch)
treecdc5c18c4994edb8583520956a4089c2f1007a6f
parent39daf581c1cda4a35ba88395379ee583369b903a (diff)
downloadrtems-02d46fa94b154ef8578199b234d54e5b3f995454.tar.bz2
Added set_errno_and_return_minus_one_cast.
-rw-r--r--c/src/exec/posix/include/rtems/posix/seterr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/exec/posix/include/rtems/posix/seterr.h b/c/src/exec/posix/include/rtems/posix/seterr.h
index 85311cfd8c..3aeb4b6a75 100644
--- a/c/src/exec/posix/include/rtems/posix/seterr.h
+++ b/c/src/exec/posix/include/rtems/posix/seterr.h
@@ -16,5 +16,8 @@
#define set_errno_and_return_minus_one( _error ) \
{ errno = (_error); return -1; }
+#define set_errno_and_return_minus_one_cast( _error, _cast ) \
+ { errno = (_error); return (_cast) -1; }
+
#endif
/* end of include file */