linamh/net-fs/ncpfs/files/ncpfs-2.2.6-fix-build-with-gcc14.patch
2024-12-10 13:55:28 +01:00

24 lines
752 B
Diff

--- 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>