From 7a1d9eb8e5c067d3e7935c8ca3aaf0535ed90661 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 25 Jan 2009 19:02:23 +0100 Subject: Make sure that st_blksize is greater than 0 --- inotail.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'inotail.h') diff --git a/inotail.h b/inotail.h index c733943..d483e02 100644 --- a/inotail.h +++ b/inotail.h @@ -38,8 +38,10 @@ struct file_struct { #define is_digit(c) ((c) >= '0' && (c) <= '9') #ifdef __GNUC__ +# define likely(x) __builtin_expect(!!(x), 1) # define unlikely(x) __builtin_expect(!!(x), 0) #else +# define likely(x) (x) # define unlikely(x) (x) #endif /* __GNUC__ */ -- cgit v1.2.3-54-g00ecf