./configure (optional if already run)
make
-based-on: f3873b3d88b61167b106e7b9227a20147f8f6197
+based-on: d1a1fec1340254926e17f5d83f848f7574286a33
diff --git a/options.c b/options.c
--- a/options.c
+++ b/options.c
+int direct_io = 0;
+
- #define RETURN_ERROR_IF(x,e) \
- do { \
- if (x) { \
-@@ -71,7 +73,12 @@ int do_symlink(const char *lnk, const char *fname)
+ #ifndef S_BLKSIZE
+ # if defined hpux || defined __hpux__ || defined __hpux
+ # define S_BLKSIZE 1024
+@@ -81,7 +83,12 @@ int do_symlink(const char *lnk, const char *fname)
* and write the lnk into it. */
if (am_root < 0) {
int ok, len = strlen(lnk);
if (fd < 0)
return -1;
ok = write(fd, lnk, len) == len;
-@@ -192,6 +199,9 @@ int do_open(const char *pathname, int flags, mode_t mode)
+@@ -202,6 +209,9 @@ int do_open(const char *pathname, int flags, mode_t mode)
RETURN_ERROR_IF_RO_OR_LO;
}
return open(pathname, flags | O_BINARY, mode);
}
-@@ -516,6 +526,9 @@ int do_open_nofollow(const char *pathname, int flags)
+@@ -526,6 +536,9 @@ int do_open_nofollow(const char *pathname, int flags)
#endif
}