This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]