summaryrefslogtreecommitdiff
path: root/inotail.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2009-01-25 19:02:23 +0100
committerTobias Klauser <tklauser@distanz.ch>2009-01-25 19:02:23 +0100
commit7a1d9eb8e5c067d3e7935c8ca3aaf0535ed90661 (patch)
treea8853148f77d63ad4d4c686fb97071f293b041ba /inotail.h
parentc954106d4388fd46f3387aae01e26ab0da993f9c (diff)
Make sure that st_blksize is greater than 0
Diffstat (limited to 'inotail.h')
-rw-r--r--inotail.h2
1 files changed, 2 insertions, 0 deletions
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__ */