11c\ 2/* config.h for compiling `patch' with DJGPP for MS-DOS and MS-Windows.\ 3 Please keep this file as similar as possible to ../../config.h\ 4 to simplify maintenance later. */\ 5\ 6/* This does most of the work; the rest of this file defines only those\ 7 symbols that <sys/config.h> doesn't define correctly. */\ 8#include <sys/config.h> 9 10s/#undef HAVE_DONE_WORKING_MALLOC_CHECK/#define HAVE_DONE_WORKING_MALLOC_CHECK 1/ 11s/#undef HAVE_DONE_WORKING_REALLOC_CHECK/#define HAVE_DONE_WORKING_REALLOC_CHECK 1/ 12s/#undef HAVE_LONG_FILE_NAMES/#define HAVE_LONG_FILE_NAMES 1/ 13s/#undef HAVE_MEMCMP/#define HAVE_MEMCMP 1/ 14s/#undef HAVE_MKTEMP/#define HAVE_MKTEMP 1/ 15s/#undef HAVE_PATHCONF/#define HAVE_PATHCONF 1/ 16s/#undef HAVE_RAISE/#define HAVE_RAISE 1/ 17s/#undef HAVE_SIGPROCMASK/#define HAVE_SIGPROCMASK 1/ 18s/#undef HAVE_STRUCT_UTIMBUF/#define HAVE_STRUCT_UTIMBUF 1/ 19s/#undef HAVE_UTIME_H/#define HAVE_UTIME_H 1/ 20s/#undef HAVE_VPRINTF/#define HAVE_VPRINTF 1/ 21s/#undef PROTOTYPES/#define PROTOTYPES 1/ 22 23s,#undef.*,/* & */, 24 25$a\ 26/* DGJPP-specific definitions */\ 27\ 28#define chdir chdir_safer\ 29int chdir_safer (char const *);\ 30\ 31#define FILESYSTEM_PREFIX_LEN(f) ((f)[0] && (f)[1] == ':' ? 2 : 0)\ 32#define ISSLASH(c) ((c) == '/' || (c) == '\\\\')\ 33\ 34#define HAVE_DOS_FILE_NAMES 1\ 35\ 36#define HAVE_SETMODE 1\ 37#ifdef WIN32\ 38# define setmode _setmode\ 39#endif\ 40\ 41#define TMPDIR "c:" 42