Commit d996f60c authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Add some compatibility macros.

parent 960104b2
...@@ -123,7 +123,31 @@ struct statvfs ...@@ -123,7 +123,31 @@ struct statvfs
#ifndef S_ISLNK #ifndef S_ISLNK
# define S_ISLNK(mod) (0) # 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 */ /* So we open files in 64 bit access mode on Linux */
#ifndef O_LARGEFILE #ifndef O_LARGEFILE
...@@ -134,6 +158,10 @@ struct statvfs ...@@ -134,6 +158,10 @@ struct statvfs
# define O_NONBLOCK 0 # define O_NONBLOCK 0
#endif #endif
#ifndef O_BINARY
# define O_BINARY 0
#endif
#if !defined(S_IXUSR) && defined(S_IEXEC) #if !defined(S_IXUSR) && defined(S_IEXEC)
# define S_IXUSR S_IEXEC # define S_IXUSR S_IEXEC
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment