2018-12-28 19:06:07 +01:00
|
|
|
Index: mtools-4.0.23/mformat.c
|
2009-12-04 12:22:19 +01:00
|
|
|
===================================================================
|
2018-12-28 19:06:07 +01:00
|
|
|
--- mtools-4.0.23.orig/mformat.c 2018-12-10 00:18:40.000000000 +0100
|
|
|
|
+++ mtools-4.0.23/mformat.c 2018-12-28 18:46:05.933555058 +0100
|
2009-12-04 12:22:19 +01:00
|
|
|
@@ -19,6 +19,7 @@
|
2007-01-16 00:25:55 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#define DONT_NEED_WAIT
|
|
|
|
+#define DONT_NEED_IN
|
|
|
|
|
|
|
|
#include "sysincludes.h"
|
|
|
|
#include "msdos.h"
|
2009-12-04 12:22:19 +01:00
|
|
|
@@ -48,7 +49,7 @@
|
2007-01-16 00:25:55 +01:00
|
|
|
|
|
|
|
#define _LINUX_STRING_H_
|
|
|
|
#define kdev_t int
|
|
|
|
-#include "linux/fs.h"
|
|
|
|
+#include "sys/mount.h"
|
|
|
|
#undef _LINUX_STRING_H_
|
|
|
|
|
|
|
|
#endif
|
2018-12-28 19:06:07 +01:00
|
|
|
Index: mtools-4.0.23/mpartition.c
|
2009-12-04 12:22:19 +01:00
|
|
|
===================================================================
|
2018-12-28 19:06:07 +01:00
|
|
|
--- mtools-4.0.23.orig/mpartition.c 2018-12-09 23:56:07.000000000 +0100
|
|
|
|
+++ mtools-4.0.23/mpartition.c 2018-12-28 18:46:05.933555058 +0100
|
2009-12-04 12:22:19 +01:00
|
|
|
@@ -17,6 +17,7 @@
|
2007-01-16 00:25:55 +01:00
|
|
|
* mformat.c
|
|
|
|
*/
|
|
|
|
#define DONT_NEED_WAIT
|
|
|
|
+#define DONT_NEED_IN
|
|
|
|
|
|
|
|
#include "sysincludes.h"
|
|
|
|
#include "msdos.h"
|
2009-12-04 12:22:19 +01:00
|
|
|
@@ -35,7 +36,7 @@
|
2007-01-16 00:25:55 +01:00
|
|
|
|
|
|
|
#define _LINUX_STRING_H_
|
|
|
|
#define kdev_t int
|
|
|
|
-#include "linux/fs.h"
|
|
|
|
+#include "sys/mount.h"
|
|
|
|
#undef _LINUX_STRING_H_
|
|
|
|
|
|
|
|
#endif
|
2018-12-28 19:06:07 +01:00
|
|
|
Index: mtools-4.0.23/sysincludes.h
|
2009-12-04 12:22:19 +01:00
|
|
|
===================================================================
|
2018-12-28 19:06:07 +01:00
|
|
|
--- mtools-4.0.23.orig/sysincludes.h 2018-12-28 18:46:05.933555058 +0100
|
|
|
|
+++ mtools-4.0.23/sysincludes.h 2018-12-28 18:48:58.902333733 +0100
|
|
|
|
@@ -359,12 +359,16 @@ extern int errno;
|
2007-01-16 00:25:55 +01:00
|
|
|
#endif
|
|
|
|
|
2018-12-28 19:06:07 +01:00
|
|
|
#ifdef HAVE_NETINET_TCP_H
|
2007-01-16 00:25:55 +01:00
|
|
|
+#ifndef DONT_NEED_IN
|
2018-12-28 19:06:07 +01:00
|
|
|
#include <netinet/tcp.h>
|
2007-01-16 00:25:55 +01:00
|
|
|
#endif
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_ARPA_INET_H
|
|
|
|
+#ifndef DONT_NEED_IN
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
#endif
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_NETDB_H
|
|
|
|
#include <netdb.h>
|