diff --git a/ChangeLog b/ChangeLog index 2518da45..76c5b697 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-09-17 Theodore Ts'o + + * config.guess, config.sub: Update to newer version from the FSF + (2004-06-11) + + * configure.in, configure: Add test for the sys/queue.h header file. + 2004-05-04 Theodore Ts'o * e2fsprogs.spec.in: Fix up e2fsprogs.spec file so it should work diff --git a/configure b/configure index 30ae6966..f3862321 100644 --- a/configure +++ b/configure @@ -5272,7 +5272,7 @@ test -n "$BUILD_CC" && break done fi -for ac_hdr in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disk.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h net/if_dl.h netinet/in.h +for ac_hdr in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disk.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h net/if_dl.h netinet/in.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 diff --git a/configure.in b/configure.in index 5d2f2201..79a39f4c 100644 --- a/configure.in +++ b/configure.in @@ -586,7 +586,7 @@ if test $cross_compiling = no; then else AC_CHECK_PROGS(BUILD_CC, gcc cc) fi -AC_CHECK_HEADERS(stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disk.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h net/if_dl.h netinet/in.h) +AC_CHECK_HEADERS(stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disk.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h net/if_dl.h netinet/in.h) AC_FUNC_VPRINTF dnl Check to see if dirent has member d_reclen. On cygwin those d_reclen dnl is not decleared. diff --git a/lib/blkid/ChangeLog b/lib/blkid/ChangeLog index 63ca354d..c95f1dd5 100644 --- a/lib/blkid/ChangeLog +++ b/lib/blkid/ChangeLog @@ -1,5 +1,10 @@ 2004-09-17 Theodore Ts'o + * getsize.c: Clean up header #include's. Include sys/disk.h if + present since this is the new place where the + DIOCGMEDIASIZE ioctl is defined on FreeBSD systems. + (Addresses Debian bug #264630) + * llseek.c (blkid_llseek): On non-linux systems, use lseek64() if it is present. (Addresses Debian bug #269044) diff --git a/lib/blkid/getsize.c b/lib/blkid/getsize.c index 5d389e3f..94e00fa7 100644 --- a/lib/blkid/getsize.c +++ b/lib/blkid/getsize.c @@ -20,21 +20,29 @@ #include #endif #include +#ifdef HAVE_SYS_IOCTL_H +#include +#endif #ifdef HAVE_LINUX_FD_H -#include #include -#endif /* HAVE_LINUX_FD_H */ +#endif #ifdef HAVE_SYS_DISKLABEL_H -#include #include #include -#endif /* HAVE_SYS_DISKLABEL_H */ +#endif +#ifdef HAVE_SYS_DISK_H +#ifdef HAVE_SYS_QUEUE_H +#include /* for LIST_HEAD */ +#endif +#include +#endif #ifdef __linux__ #include #endif #include "blkidP.h" + #if defined(__linux__) && defined(_IO) && !defined(BLKGETSIZE) #define BLKGETSIZE _IO(0x12,96) /* return device size */ #endif @@ -44,9 +52,6 @@ #endif #ifdef APPLE_DARWIN -#include -#include - #define BLKGETSIZE DKIOCGETBLOCKCOUNT32 #endif /* APPLE_DARWIN */ diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog index edf9afc0..036a5028 100644 --- a/lib/ext2fs/ChangeLog +++ b/lib/ext2fs/ChangeLog @@ -1,5 +1,7 @@ 2004-09-17 Theodore Ts'o + * getsize.c: Clean up header #include's. + * llseek.c (ext2fs_llseek): On non-linux systems, use lseek64() if it is present. (Addresses Debian bug #269044) diff --git a/lib/ext2fs/getsize.c b/lib/ext2fs/getsize.c index 0567a031..360ecdfc 100644 --- a/lib/ext2fs/getsize.c +++ b/lib/ext2fs/getsize.c @@ -23,18 +23,21 @@ #include #endif #include -#ifdef HAVE_LINUX_FD_H +#ifdef HAVE_SYS_IOCTL_H #include +#endif +#ifdef HAVE_LINUX_FD_H #include #endif #ifdef HAVE_SYS_DISKLABEL_H -#include #include -#endif /* HAVE_SYS_DISKLABEL_H */ +#endif #ifdef HAVE_SYS_DISK_H +#ifdef HAVE_SYS_QUEUE_H #include /* for LIST_HEAD */ +#endif #include -#endif /* HAVE_SYS_DISK_H */ +#endif #ifdef __linux__ #include #endif @@ -48,9 +51,6 @@ #endif #ifdef APPLE_DARWIN -#include -#include - #define BLKGETSIZE DKIOCGETBLOCKCOUNT32 #endif /* APPLE_DARWIN */