Changes by: antona
Update of /cvsroot/linux-ntfs/ntfsprogs/libntfs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9881/libntfs
Modified Files:
attrib.c attrlist.c bitmap.c bootsect.c compress.c device.c
gnome-vfs-method.c index.c inode.c lcnalloc.c logfile.c mft.c
mst.c runlist.c security.c unistr.c unix_io.c volume.c
win32_io.c
Log Message:
Patch from Christophe:
A lot of headers are checked by autoconf (AC_CHECK_HEADERS in configure.ac).
Please find a patch that add the missing "#ifdef" to the source code.
Index: attrib.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/attrib.c,v
retrieving revision 1.177
retrieving revision 1.178
diff -u -p -r1.177 -r1.178
--- attrib.c 24 Sep 2005 22:54:55 -0000 1.177
+++ attrib.c 28 Sep 2005 13:47:47 -0000 1.178
@@ -23,10 +23,18 @@
#include "config.h"
+#ifdef HAVE_STDIO_H
#include <stdio.h>
+#endif
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
#include "compat.h"
Index: attrlist.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/attrlist.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -p -r1.29 -r1.30
--- attrlist.c 24 Sep 2005 13:03:07 -0000 1.29
+++ attrlist.c 28 Sep 2005 13:47:48 -0000 1.30
@@ -23,8 +23,12 @@
#include "config.h"
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
#include "types.h"
#include "layout.h"
Index: bitmap.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/bitmap.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- bitmap.c 18 Aug 2004 10:27:49 -0000 1.12
+++ bitmap.c 28 Sep 2005 13:47:48 -0000 1.13
@@ -21,10 +21,18 @@
#include "config.h"
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef HAVE_STDIO_H
#include <stdio.h>
+#endif
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
#include "types.h"
#include "attrib.h"
Index: bootsect.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/bootsect.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -p -r1.16 -r1.17
--- bootsect.c 14 Aug 2005 15:44:47 -0000 1.16
+++ bootsect.c 28 Sep 2005 13:47:48 -0000 1.17
@@ -22,10 +22,18 @@
#include "config.h"
+#ifdef HAVE_STDIO_H
#include <stdio.h>
+#endif
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
#include "compat.h"
Index: compress.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/compress.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- compress.c 4 Aug 2005 08:09:58 -0000 1.12
+++ compress.c 28 Sep 2005 13:47:48 -0000 1.13
@@ -23,10 +23,18 @@
#include "config.h"
+#ifdef HAVE_STDIO_H
#include <stdio.h>
+#endif
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
#include "attrib.h"
#include "debug.h"
Index: device.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/device.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -p -r1.19 -r1.20
--- device.c 19 Aug 2005 16:01:15 -0000 1.19
+++ device.c 28 Sep 2005 13:47:48 -0000 1.20
@@ -21,14 +21,30 @@
#include "config.h"
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
+#ifdef HAVE_STDIO_H
#include <stdio.h>
+#endif
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
+#ifdef HAVE_FCNTL_H
#include <fcntl.h>
+#endif
#ifdef HAVE_SYS_IOCTL_H
# include <sys/ioctl.h>
#endif
Index: gnome-vfs-method.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/gnome-vfs-method.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -r1.6 -r1.7
--- gnome-vfs-method.c 20 Jun 2005 14:31:58 -0000 1.6
+++ gnome-vfs-method.c 28 Sep 2005 13:47:48 -0000 1.7
@@ -34,7 +34,9 @@
#include <glib/gmessages.h>
#include "gnome-vfs-module.h"
#include <glib/ghash.h>
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
#include <libgnomevfs/gnome-vfs-utils.h>
#include "volume.h"
Index: index.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/index.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -p -r1.11 -r1.12
--- index.c 26 Aug 2005 20:17:08 -0000 1.11
+++ index.c 28 Sep 2005 13:47:48 -0000 1.12
@@ -20,7 +20,9 @@
* Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
#include "attrib.h"
#include "collate.h"
Index: inode.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/inode.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -p -r1.66 -r1.67
--- inode.c 16 Sep 2005 14:28:18 -0000 1.66
+++ inode.c 28 Sep 2005 13:47:48 -0000 1.67
@@ -22,9 +22,15 @@
#include "config.h"
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
#include "compat.h"
Index: lcnalloc.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/lcnalloc.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -p -r1.31 -r1.32
--- lcnalloc.c 19 Jun 2005 21:09:40 -0000 1.31
+++ lcnalloc.c 28 Sep 2005 13:47:48 -0000 1.32
@@ -22,9 +22,15 @@
#include "config.h"
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef HAVE_STDIO_H
#include <stdio.h>
+#endif
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
#include "types.h"
#include "attrib.h"
Index: logfile.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/logfile.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- logfile.c 26 Sep 2005 13:18:29 -0000 1.7
+++ logfile.c 28 Sep 2005 13:47:48 -0000 1.8
@@ -20,7 +20,9 @@
* Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
#include "attrib.h"
#include "debug.h"
Index: mft.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/mft.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -p -r1.33 -r1.34
--- mft.c 14 Aug 2005 15:44:47 -0000 1.33
+++ mft.c 28 Sep 2005 13:47:48 -0000 1.34
@@ -22,10 +22,18 @@
#include "config.h"
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef HAVE_STDIO_H
#include <stdio.h>
+#endif
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
#include <time.h>
#include "compat.h"
Index: mst.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/mst.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- mst.c 6 Jul 2005 22:47:18 -0000 1.12
+++ mst.c 28 Sep 2005 13:47:48 -0000 1.13
@@ -22,7 +22,9 @@
#include "config.h"
#include "mst.h"
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
/**
* ntfs_mst_post_read_fixup - deprotect multi sector transfer protected data
Index: runlist.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/runlist.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -p -r1.58 -r1.59
--- runlist.c 19 Sep 2005 20:58:54 -0000 1.58
+++ runlist.c 28 Sep 2005 13:47:48 -0000 1.59
@@ -23,10 +23,18 @@
#include "config.h"
+#ifdef HAVE_STDIO_H
#include <stdio.h>
+#endif
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
#include "compat.h"
Index: security.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/security.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- security.c 19 Jun 2005 21:09:40 -0000 1.7
+++ security.c 28 Sep 2005 13:47:48 -0000 1.8
@@ -22,10 +22,18 @@
#include "config.h"
+#ifdef HAVE_STDIO_H
#include <stdio.h>
+#endif
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
#include "types.h"
#include "layout.h"
Index: unistr.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/unistr.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -p -r1.28 -r1.29
--- unistr.c 24 Sep 2005 22:54:55 -0000 1.28
+++ unistr.c 28 Sep 2005 13:47:48 -0000 1.29
@@ -21,11 +21,21 @@
#include "config.h"
+#ifdef HAVE_STDIO_H
#include <stdio.h>
+#endif
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef HAVE_WCHAR_H
#include <wchar.h>
+#endif
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
#include "types.h"
#include "unistr.h"
Index: unix_io.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/unix_io.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- unix_io.c 6 Jul 2005 22:47:18 -0000 1.4
+++ unix_io.c 28 Sep 2005 13:47:48 -0000 1.5
@@ -21,15 +21,33 @@
#include "config.h"
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
+#ifdef HAVE_STDIO_H
#include <stdio.h>
+#endif
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
+#ifdef HAVE_FCNTL_H
#include <fcntl.h>
+#endif
+#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
+#endif
#ifdef HAVE_LINUX_FD_H
# include <linux/fd.h>
#endif
Index: volume.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/volume.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -p -r1.54 -r1.55
--- volume.c 27 Sep 2005 18:03:00 -0000 1.54
+++ volume.c 28 Sep 2005 13:47:48 -0000 1.55
@@ -22,14 +22,30 @@
#include "config.h"
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef HAVE_STDIO_H
#include <stdio.h>
+#endif
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
+#ifdef HAVE_FCNTL_H
#include <fcntl.h>
+#endif
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
+#ifdef HAVE_LIMITS_H
#include <limits.h>
+#endif
#include "volume.h"
#include "attrib.h"
Index: win32_io.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/win32_io.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -p -r1.38 -r1.39
--- win32_io.c 1 Aug 2005 22:10:40 -0000 1.38
+++ win32_io.c 28 Sep 2005 13:47:48 -0000 1.39
@@ -24,13 +24,23 @@
#include "config.h"
+#ifdef HAVE_WINDOWS_H
#include <windows.h>
+#endif
#include <winioctl.h>
+#ifdef HAVE_STDIO_H
#include <stdio.h>
+#endif
+#ifdef HAVE_CTYPE_H
#include <ctype.h>
+#endif
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
+#ifdef HAVE_FCNTL_H
#include <fcntl.h>
+#endif
/*
* Cannot use "../include/types.h" since it conflicts with "wintypes.h".
|