Fix gcc 14 build ncpfs

This commit is contained in:
Mario Fetka
2024-12-10 13:55:28 +01:00
parent 96ea326bd7
commit 5f902f1645
30 changed files with 3263 additions and 478 deletions

View File

@@ -0,0 +1,23 @@
--- ncpfs-2.2.6/lib/nwnet.c 2005-01-27 18:35:59.000000000 +0100
+++ ncpfs-2.2.6/lib/nwnet.c.gcc14 2024-11-20 16:28:06.070435373 +0100
@@ -1215,7 +1215,7 @@ NWDSCCODE NWDSCreateContextHandle(NWDSCo
#endif
};
- err = NWDSSetTransport(tmp, sizeof(t)/sizeof(t[0]), t);
+ err = NWDSSetTransport(tmp, sizeof(t)/sizeof(t[0]), (const NET_ADDRESS_TYPE *) t);
}
if (err) {
NWDSFreeContext(tmp);
--- ncpfs-2.2.6/sutil/ncpumount.c 2024-11-20 16:30:32.629748174 +0100
+++ ncpfs-2.2.6/sutil/ncpumount.c.gcc14 2024-11-20 16:33:51.594153847 +0100
@@ -62,6 +62,9 @@
#include <stdarg.h>
#include <signal.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <sys/wait.h>
#include <sys/errno.h>
#include <ncp/nwcalls.h>
#include <ncp/nwnet.h>