1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-17 06:24:12 -04:00
elinks/src/osdep/win32/sysinfo.h
2006-01-11 20:10:27 +01:00

47 lines
973 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