]> git.wh0rd.org - dump.git/blobdiff - compat/include/bsdcompat.h
Prevent bsdcompat.h to be included more than once.
[dump.git] / compat / include / bsdcompat.h
index 4b9b9077ac6edacbf38a9e27e2f793a5122a9b52..d19687fd298836047c537c435032c05792db1e1c 100644 (file)
@@ -5,7 +5,7 @@
  *     Stelian Pop <stelian@popies.net>, 1999-2000
  *     Stelian Pop <stelian@popies.net> - AlcĂ´ve <www.alcove.com>, 2000-2002
  *
- *     $Id: bsdcompat.h,v 1.23 2004/07/01 09:14:48 stelian Exp $
+ *     $Id: bsdcompat.h,v 1.25 2011/06/10 12:46:41 stelian Exp $
  */
 
 #include <config.h>
@@ -13,6 +13,9 @@
 #include <dirent.h>
 #include <ext2fs/ext2fs.h>
 
+#ifndef _BSDCOMPAT_H
+#define _BSDCOMPAT_H 1
+
 #define        __dead          volatile
 #define UNUSED(x)      x __attribute__ ((unused))
 
@@ -130,6 +133,8 @@ struct dinode {
        __u16   di_uidhigh;
        __u16   di_gidhigh;
        __u32   di_spare;
+       __u16   di_extraisize;
+       __u16   di_pad2;
 };
 
 #define di_rdev                di_db[0]
@@ -290,3 +295,4 @@ struct new_bsd_inode {
 
 #define        di_ouid         di_u.oldids[0]
 #define        di_ogid         di_u.oldids[1]
+#endif /* _BSDCOMPAT_H */