errno.h changes to mark Linux specific errnos

Joel Sherrill joel.sherrill@oarcorp.com
Wed Jul 8 11:45:00 GMT 2009


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




More information about the Newlib mailing list