+/^#undef HAVE_SYS_SELECT/i\
+#if defined(__DJGPP__) && __DJGPP__ > 1\
+/* In v2.0 and later almost everything is defined in <sys/config.h> */\
+#include <sys/config.h>\
+#undef HAVE_SELECT\
+#undef _LIBC\
+#define HAVE_VFORK 1\
+#define HAVE_STRUCT_UTIMBUF 1\
+#define LOCALTIME_CACHE 1\
+#define HAVE_TZSET 1\
+#define HAVE_LOGB 1\
+#define HAVE_FREXP 1\
+#define HAVE_FMOD 1\
+#define HAVE_RINT 1\
+#define HAVE_CBRT 1\
+#define HAVE_FPATHCONF 1\
+#define HAVE_SETRLIMIT 1\
+#else /* not __DJGPP__ > 1 */