# Sed script to add DJGPP specific issues to config.h.


$ a\
\
\
/* DGJPP-specific definitions */\
\
#ifdef __DJGPP__\
/*  gcc no longer includes this by default.  */\
# include <sys/version.h>\
\
# ifndef EOPNOTSUPP\
#  define EOPNOTSUPP    95  /* Operation not supported on transport endpoint */\
# endif\
\
# ifndef SA_NODEFER\
#  define SA_NODEFER    0\
# endif\
\
# ifndef SA_RESETHAND\
#  define SA_RESETHAND  0\
# endif\
\
# if defined (__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8))\
#  define __gnuc_extension__  __extension__\
# else\
#  define __gnuc_extension__\
# endif\
\
\
/*  To get the testsuit working.  */\
\
# ifndef EWOULDBLOCK\
#  define EWOULDBLOCK      EAGAIN\
# endif\
\
# ifndef ENOTSOCK\
#  define ENOTSOCK         88\
# endif\
\
# ifndef EDESTADDRREQ\
#  define EDESTADDRREQ     89\
# endif\
\
# ifndef EMSGSIZE\
#  define EMSGSIZE         90\
# endif\
\
# ifndef EPROTOTYPE\
#  define EPROTOTYPE       91\
# endif\
\
# ifndef ENOPROTOOPT\
#  define ENOPROTOOPT      92\
# endif\
\
# ifndef EPROTONOSUPPORT\
#  define EPROTONOSUPPORT  93\
# endif\
\
# ifndef EAFNOSUPPORT\
#  define EAFNOSUPPORT     97\
# endif\
\
# ifndef EADDRINUSE\
#  define EADDRINUSE       98\
# endif\
\
# ifndef EADDRNOTAVAIL\
#  define EADDRNOTAVAIL    99\
# endif\
\
# ifndef ENETDOWN\
#  define ENETDOWN         100\
# endif\
\
# ifndef ENETUNREACH\
#  define ENETUNREACH      101\
# endif\
\
# ifndef ECONNRESET\
#  define ECONNRESET       104\
# endif\
\
# ifndef ENOBUFS\
#  define ENOBUFS          105\
# endif\
\
# ifndef EISCONN\
#  define EISCONN          106\
# endif\
\
# ifndef ENOTCONN\
#  define ENOTCONN         107\
# endif\
\
# ifndef ETIMEDOUT\
#  define ETIMEDOUT        110\
# endif\
\
# ifndef ECONNREFUSED\
#  define ECONNREFUSED     111\
# endif\
\
# ifndef EHOSTUNREACH\
#  define EHOSTUNREACH     113\
# endif\
\
# ifndef EALREADY\
#  define EALREADY         114\
# endif\
\
# ifndef EINPROGRESS\
#  define EINPROGRESS      115\
# endif\
\
# ifndef ETXTBSY\
#  define ETXTBSY  1240  /* Unknown and invented.  */\
# endif\
\
#endif
