From 5be1c0330b8ba239a7a25ff6ec840e3316ef68c7 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Mon, 17 Jan 2011 21:04:04 +0100 Subject: 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 --- include/c.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/c.h') 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 */ -- cgit v1.2.3-55-g7522