sahlberg / libnfs

NFS client library
Other
510 stars 200 forks source link

Fix release build which requires mode for create call #482

Closed linuxsmiths closed 1 month ago

linuxsmiths commented 1 month ago

This is the error it fails with

In file included from /usr/include/fcntl.h:301, from /home/tomar/linuxsmiths_azure-storage-fuse/nfs/extern/libnfs/examples/nfs-pthreads-async-readfile.c:56: In function ‘open’, inlined from ‘main’ at /home/tomar/linuxsmiths_azure-storage-fuse/nfs/extern/libnfs/examples/nfs-pthreads-async-readfile.c:277:14: /usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:4: error: call to ‘open_missing_mode’ declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments 50 | open_missing_mode (); | ^~~~~~