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


/#undef[ 	]*USE_SETMODE_STDOUT/ c\
#define USE_SETMODE_STDOUT 1

/#undef[ 	]*HAVE_SETMODE/ c\
#define HAVE_SETMODE 1

# Prefer select over usleep to
# avoid issues with DOSIDLE.EXE.
/#undef[ 	]*HAVE_SELECT/ c\
#define HAVE_SELECT 1

/#define[ 	]*HAVE_USLEEP/ c\
/* #undef HAVE_USLEEP */


$ a\
\
\
/* DGJPP-specific definitions */\
\
#ifdef __DJGPP__\
/*  gcc no longer includes this by default.  */\
# include <sys/version.h>\
\
# ifndef S_ISSOCK\
#  define S_ISSOCK(m)  0\
# endif\
\
/*\
 *  Make sure that GNU gettext is\
 *  used and not conio gettext.\
 */\
# define __USE_GNU_GETTEXT  1\
\
# if defined (__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8))\
#  define __gnuc_extension__  __extension__\
# else\
#  define __gnuc_extension__\
# endif\
#endif
