X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Ffcntl.h;h=f1c07a4f27f1e1d7bcc4660ce1ba6231c0388e67;hp=575495fe55b3818a4aba8e5af3c41872aab91e74;hb=7657ae75b85d728d84c2f540df6a3739a167090c;hpb=409a0c56eb6e089c182dfa8f2a7a63dc95b04917 diff --git a/src/common/compat/fcntl.h b/src/common/compat/fcntl.h index 575495fe5..f1c07a4f2 100644 --- a/src/common/compat/fcntl.h +++ b/src/common/compat/fcntl.h @@ -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 */