From d996f60c0de37c23027f0c88a8d8dc0eebebbd60 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Thu, 22 Apr 2004 23:45:47 +0000 Subject: [PATCH] Add some compatibility macros. --- include/wine/port.h | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/include/wine/port.h b/include/wine/port.h index 0c9c4f481c2..31c0a82d0f7 100644 --- a/include/wine/port.h +++ b/include/wine/port.h @@ -123,7 +123,31 @@ struct statvfs #ifndef S_ISLNK # define S_ISLNK(mod) (0) -#endif /* S_ISLNK */ +#endif + +#ifndef S_ISSOCK +# define S_ISSOCK(mod) (0) +#endif + +#ifndef S_ISDIR +# define S_ISDIR(mod) (((mod) & _S_IFMT) == _S_IFDIR) +#endif + +#ifndef S_ISCHR +# define S_ISCHR(mod) (((mod) & _S_IFMT) == _S_IFCHR) +#endif + +#ifndef S_ISFIFO +# define S_ISFIFO(mod) (((mod) & _S_IFMT) == _S_IFIFO) +#endif + +#ifndef S_ISREG +# define S_ISREG(mod) (((mod) & _S_IFMT) == _S_IFREG) +#endif + +#ifndef S_IWUSR +# define S_IWUSR 0 +#endif /* So we open files in 64 bit access mode on Linux */ #ifndef O_LARGEFILE @@ -134,6 +158,10 @@ struct statvfs # define O_NONBLOCK 0 #endif +#ifndef O_BINARY +# define O_BINARY 0 +#endif + #if !defined(S_IXUSR) && defined(S_IEXEC) # define S_IXUSR S_IEXEC #endif