bsd compat headers: #elif -> #elif defined
[lttng-tools.git] / src / common / compat / fcntl.h
index 575495fe55b3818a4aba8e5af3c41872aab91e74..f1c07a4f27f1e1d7bcc4660ce1ba6231c0388e67 100644 (file)
@@ -28,7 +28,7 @@ extern int compat_sync_file_range(int fd, off64_t offset, off64_t nbytes,
 #define lttng_sync_file_range(fd, offset, nbytes, flags) \
        compat_sync_file_range(fd, offset, nbytes, flags)
 
-#elif __FreeBSD__
+#elif defined(__FreeBSD__)
 
 typedef long int off64_t;
 typedef off64_t loff_t;
@@ -70,7 +70,7 @@ static inline int posix_fadvise(int fd, off_t offset, off_t len, int advice)
 }
 
 #else
-#error "Please add support for your OS into compat/fcntl.h."
+#error "Please add support for your OS."
 #endif /* __linux__ , __FreeBSD__ */
 
 #endif /* _COMPAT_FCNTL_H */
This page took 0.023336 seconds and 4 git commands to generate.