OSDN Git Service

ChangeLog, ext2_types.h.in:
authorTheodore Ts'o <tytso@mit.edu>
Thu, 14 Jun 2001 00:24:42 +0000 (00:24 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 14 Jun 2001 00:24:42 +0000 (00:24 +0000)
  ext2_types.h.in: If linux/types.h has been defined, then don't try to
   redefine the typedefs.
ChangeLog, Makefile.in:
  Makefile.in: Make the install target depend on $(SUBS) to accomodate
   the fools who want to compile and install e2fsprogs as root using just
   one command.

ChangeLog
Makefile.in
lib/ext2fs/ChangeLog
lib/ext2fs/ext2_types.h.in

index 41cb2e8..a958d54 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2001-06-13  Theodore Tso  <tytso@valinux.com>
 
+       * Makefile.in: Make the install target depend on $(SUBS) to
+               accomodate the fools who want to compile and install
+               e2fsprogs as root using just one command.
+
        * Makefile.in: Don't recurse into debugfs and resize subdirectory
                if --disable-debugfs or --disable-resizer is given as a
                configuration option.
index 480aa8b..6c0eddb 100644 (file)
@@ -41,7 +41,7 @@ clean-doc:
 distclean-doc:
        cd doc && $(MAKE) distclean
 
-install: all-libs-recursive install-progs-recursive \
+install: $(SUBS) all-libs-recursive install-progs-recursive \
        install-shlibs-libs-recursive install-doc-libs
 #      export MANPATH=$(DESTDIR)$(mandir); $(srcdir)/install-utils/compile_manpages
 
index 6e693b0..a1224c5 100644 (file)
@@ -1,5 +1,8 @@
 2001-06-13  Theodore Tso  <tytso@valinux.com>
 
+       * ext2_types.h.in: If linux/types.h has been defined, then don't
+               try to redefine the typedefs.
+
        * Makefile.in (HFILES): Add ext2_types.h to the list of files
                which should be installed.
 
index 0731a01..38f588f 100644 (file)
@@ -1,6 +1,12 @@
 #ifndef _EXT2_TYPES_H
 #define _EXT2_TYPES_H
 
+/* 
+ * If linux/types.h is already been included, assume it has defined
+ * everything we need.  (cross fingers)
+ */
+#ifndef _LINUX_TYPES_H
+
 typedef unsigned char __u8;
 typedef signed char __s8;
 
@@ -42,4 +48,6 @@ typedef       unsigned short  __u32;
  ?== error: undefined 32 bit type
 #endif
 
+#endif /* LINUX_TYPES_H */
+
 #endif /* EXT2_TYPES_H */