diff options
-rw-r--r-- | tools/darwin/depends/libnfs/001_fix_hanewin.patch | 12 | ||||
-rw-r--r-- | tools/darwin/depends/libnfs/Makefile | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tools/darwin/depends/libnfs/001_fix_hanewin.patch b/tools/darwin/depends/libnfs/001_fix_hanewin.patch new file mode 100644 index 0000000000..507fbe6988 --- /dev/null +++ b/tools/darwin/depends/libnfs/001_fix_hanewin.patch @@ -0,0 +1,12 @@ +--- lib/libnfs.c 2011-09-02 12:45:30.000000000 +0200 ++++ lib/libnfs.c 2011-12-04 21:16:07.000000000 +0100 +@@ -666,6 +666,9 @@ + if (res->GETATTR3res_u.resok.obj_attributes.type == NF3DIR) { + st.st_mode |= S_IFDIR ; + } ++ if (res->GETATTR3res_u.resok.obj_attributes.type == NF3REG) { ++ st.st_mode |= S_IFREG ; ++ } + st.st_nlink = res->GETATTR3res_u.resok.obj_attributes.nlink; + st.st_uid = res->GETATTR3res_u.resok.obj_attributes.uid; + st.st_gid = res->GETATTR3res_u.resok.obj_attributes.gid; diff --git a/tools/darwin/depends/libnfs/Makefile b/tools/darwin/depends/libnfs/Makefile index fef8ffec5f..fa93528f9c 100644 --- a/tools/darwin/depends/libnfs/Makefile +++ b/tools/darwin/depends/libnfs/Makefile @@ -27,6 +27,7 @@ $(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE) echo $(SOURCE) > .gitignore mkdir -p $(PREFIX)/include/rpc install -c -m 644 $(RPC_HEADERS) $(PREFIX)/include/rpc/ + cd $(SOURCE); patch -p0 < ../001_fix_hanewin.patch cd $(SOURCE); ./bootstrap cd $(SOURCE); $(CONFIGURE) |