This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
errno.h changes to mark Linux specific errnos
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: "newlib at sources dot redhat dot com" <newlib at sources dot redhat dot com>
- Date: Tue, 7 Jul 2009 14:10:56 -0500
- Subject: errno.h changes to mark Linux specific errnos
Hi,
In trying to build RTEMS with the newlib CVS head,
I noticed that the following errno's are used by
the BSD TCP/IP stack in RTEMS:
#define EBADRQC 54 /* Invalid request code */
#define EPFNOSUPPORT 96 /* Protocol family not supported */
#define EHOSTDOWN 117 /* Host is down */
#define ETOOMANYREFS 129
So they are not only specific to Linux. I changed the
conditional protecting each of these defines to
#if defined(__LINUX_ERRNO_EXTENSIONS__) || defined(__rtems__)
Is this the right solution? Any better ideas?
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985