diff options
Diffstat (limited to 'pm_config.in.h')
-rw-r--r-- | pm_config.in.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pm_config.in.h b/pm_config.in.h index 1e54f06e..c64fc093 100644 --- a/pm_config.in.h +++ b/pm_config.in.h @@ -137,7 +137,11 @@ #define HAVE_SETMODE #endif -/* #define HAVE_SETMODE */ +#if MSVCRT || defined(__CYGWIN__) || defined(DJGPP) +#define HAVE_IO_H 1 +#else +#define HAVE_IO_H 0 +#endif #if (defined(__GLIBC__) || defined(__GNU_LIBRARY__) || defined(__APPLE__)) || defined(__NetBSD__) #define HAVE_VASPRINTF 1 @@ -145,6 +149,15 @@ #define HAVE_VASPRINTF 0 #endif +/* On Windows, unlinking a file is deleting it, and you can't delete an open + file, so unlink of an open file fails. The errno is (incorrectly) EACCES. +*/ +#if MSVCRT || defined(__CYGWIN__) || defined(DJGPP) + #define CAN_UNLINK_OPEN 0 +#else + #define CAN_UNLINK_OPEN 1 +#endif + #ifdef __amigaos__ #include <clib/exec_protos.h> #define getpid() ((pid_t)FindTask(NULL)) |