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

47 lines
973 B
C
Raw Normal View History

#ifndef EL__OSDEP_WIN32_SYSINFO_H
#define EL__OSDEP_WIN32_SYSINFO_H
2006-01-11 14:10:27 -05:00
#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