diff options
author | Fabian Groffen | 2011-01-17 21:04:04 +0100 |
---|---|---|
committer | Karel Zak | 2011-01-20 22:40:58 +0100 |
commit | 5be1c0330b8ba239a7a25ff6ec840e3316ef68c7 (patch) | |
tree | 211b13a8692e921cb7b35515f62f452980c026b2 /include/c.h | |
parent | libmount: add mnt_context_is_* functions (diff) | |
download | kernel-qcow2-util-linux-5be1c0330b8ba239a7a25ff6ec840e3316ef68c7.tar.gz kernel-qcow2-util-linux-5be1c0330b8ba239a7a25ff6ec840e3316ef68c7.tar.xz kernel-qcow2-util-linux-5be1c0330b8ba239a7a25ff6ec840e3316ef68c7.zip |
build-sys: check for loff_t, it may not exist
On some systems, loff_t does not exist. Define it as int64_t in that
case.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'include/c.h')
-rw-r--r-- | include/c.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/c.h b/include/c.h index cfee616fb..83be3565c 100644 --- a/include/c.h +++ b/include/c.h @@ -69,5 +69,9 @@ static inline __attribute__((const)) int is_power_of_2(unsigned long num) return (num != 0 && ((num & (num - 1)) == 0)); } +#ifndef HAVE_LOFF_T +typedef int64_t loff_t; +#endif + #endif /* UTIL_LINUX_C_H */ |