]> mj.ucw.cz Git - libucw.git/blobdiff - lib/config.h
Fixed a nasty bug in hash table allocation. HASH_AUTO_POOL must use
[libucw.git] / lib / config.h
index 8411bae746ef77ab54216b22c96f36fccfc33e76..be3d43fabd48cbc4a6c4cc6f3882a41856f55b30 100644 (file)
@@ -18,6 +18,8 @@
 
 typedef unsigned char byte;            /* exactly 8 bits, unsigned */
 typedef signed char sbyte;             /* exactly 8 bits, signed */
+typedef unsigned char u8;              /* exactly 8 bits, unsigned */
+typedef signed char s8;                        /* exactly 8 bits, signed */
 typedef unsigned short word;           /* exactly 16 bits, unsigned */
 typedef short sword;                   /* exactly 16 bits, signed */
 typedef unsigned short u16;            /* exactly 16 bits, unsigned */
@@ -34,6 +36,10 @@ typedef unsigned int sh_time_t;              /* Timestamp */
 #define NULL (void *)0
 #endif
 
-typedef s64 sh_off_t;                  /* FIXME */
+#ifdef CONFIG_LFS                      /* File positions */
+typedef s64 sh_off_t;
+#else
+typedef s32 sh_off_t;
+#endif
 
 #endif