1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/src/osdep/win32/sysinfo.h
Witold Filipczyk ef33a13713 Do not #define NO_FG_EXEC for Windows.
Editing textareas with external editor works.
There is a possible buffer overflow in mkstemp.
2010-03-21 22:36:01 +01:00

47 lines
979 B
C

#ifndef EL__OSDEP_WIN32_SYSINFO_H
#define EL__OSDEP_WIN32_SYSINFO_H
#ifdef CONFIG_OS_WIN32
#define SYSTEM_NAME "Win32"
#define SYSTEM_STR "win32"
#define DEFAULT_SHELL "cmd.exe"
#define GETSHELL getenv("COMSPEC")
#define dir_sep(x) ((x) == '/' || (x) == '\\')
/* When is this a problem? --jonas */
#if !defined(__CYGWIN__)
#include <io.h>
#include <direct.h>
#define mkdir(dir,access) (mkdir)(dir)
#define sleep(s) Sleep(1000*(s))
#define wait(status) _cwait(NULL, 0xdeadbeef, _WAIT_CHILD)
#endif /* __CYGWIN__ */
/*#define NO_ASYNC_LOOKUP*/
/* #define NO_FG_EXEC */
#define DOS_FS
#define NO_FORK_ON_EXIT
/* Misc defines */
#define IN_LOOPBACKNET 127
#define EADDRINUSE WSAEADDRINUSE
#define EAFNOSUPPORT WSAEAFNOSUPPORT
#define EALREADY WSAEALREADY
#define ECONNREFUSED WSAECONNREFUSED
#define ECONNRESET WSAECONNRESET
#define EINPROGRESS WSAEINPROGRESS
#define EWOULDBLOCK WSAEWOULDBLOCK
#define ENETUNREACH WSAENETUNREACH
#endif
#endif