1
0
forked from pool/mtools
mtools/mtools-4.0.17-prototypes.diff
Petr Gajdos 0a191e9672 - updated to 4.0.17:
* mbadblocks now takes a list of bad blocks (either as sectors
    or as clusters)
  * mbadblocks now is able to do write scanning for bad blocks
  * mshowfat can show cluster of specific offset
  * Enable mtools to deal with very small sector sizes...
  * Fixed encoding of all-lowercase names (no need to mangle
    these)
  * Consider every directory entry after an ENDMARK (0x00) to be deleted
  * After writing a new entry at end of a directory, be sure to also add
    an ENDMARK (0x00)
  * Deal with possibility of a NULL pointer being returned by
    localtime during timestamp conversion

OBS-URL: https://build.opensuse.org/package/show/Base:System/mtools?expand=0&rev=24
2011-06-30 13:54:34 +00:00

64 lines
1.2 KiB
Diff

Index: mformat.c
===================================================================
--- mformat.c.orig
+++ mformat.c
@@ -19,6 +19,7 @@
*/
#define DONT_NEED_WAIT
+#define DONT_NEED_IN
#include "sysincludes.h"
#include "msdos.h"
@@ -48,7 +49,7 @@
#define _LINUX_STRING_H_
#define kdev_t int
-#include "linux/fs.h"
+#include "sys/mount.h"
#undef _LINUX_STRING_H_
#endif
Index: mpartition.c
===================================================================
--- mpartition.c.orig
+++ mpartition.c
@@ -17,6 +17,7 @@
* mformat.c
*/
#define DONT_NEED_WAIT
+#define DONT_NEED_IN
#include "sysincludes.h"
#include "msdos.h"
@@ -35,7 +36,7 @@
#define _LINUX_STRING_H_
#define kdev_t int
-#include "linux/fs.h"
+#include "sys/mount.h"
#undef _LINUX_STRING_H_
#endif
Index: sysincludes.h
===================================================================
--- sysincludes.h.orig
+++ sysincludes.h
@@ -331,12 +331,16 @@ typedef unsigned int uid_t;
#endif
#ifdef HAVE_NETINET_IN_H
+#ifndef DONT_NEED_IN
#include <netinet/in.h>
#endif
+#endif
#ifdef HAVE_ARPA_INET_H
+#ifndef DONT_NEED_IN
#include <arpa/inet.h>
#endif
+#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>