summaryrefslogtreecommitdiffstats
path: root/system/arj/patches/hurd_no_fcntl_getlk.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/arj/patches/hurd_no_fcntl_getlk.patch')
-rw-r--r--system/arj/patches/hurd_no_fcntl_getlk.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/system/arj/patches/hurd_no_fcntl_getlk.patch b/system/arj/patches/hurd_no_fcntl_getlk.patch
new file mode 100644
index 0000000000..ff1113f831
--- /dev/null
+++ b/system/arj/patches/hurd_no_fcntl_getlk.patch
@@ -0,0 +1,16 @@
+---
+ environ.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- a/environ.c
++++ b/environ.c
+@@ -1775,7 +1775,8 @@ int file_test_access(char *name)
+ memset(&flk, 0, sizeof(flk));
+ rc=fcntl(handle, F_GETLK, &flk);
+ close(handle);
+- return(((rc==-1&&errno!=EINVAL)||(rc!=1&&flk.l_type==F_RDLCK))?-1:0);
++ return(((rc==-1&&errno!=EINVAL&&errno!=ENOSYS)||
++ (rc!=1&&flk.l_type==F_RDLCK))?-1:0);
+ #endif
+ }
+ #endif