X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Ffcntl.h;h=8bbdfe89cc75c122bda2ea7b77db27ca0727ebf6;hb=55caead7396fa6d4337db7fa8c64a1036393be9f;hp=b18e2f4e76d653b2810e1bd8892edbd9031d1b90;hpb=edf4b93e2f5c849cbec49e987990b3705ea49f6a;p=deliverable%2Flttng-tools.git diff --git a/src/common/compat/fcntl.h b/src/common/compat/fcntl.h index b18e2f4e7..8bbdfe89c 100644 --- a/src/common/compat/fcntl.h +++ b/src/common/compat/fcntl.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #if (defined(__CYGWIN__)) typedef long long off64_t; #endif @@ -64,4 +68,8 @@ static inline ssize_t splice(int fd_in, loff_t *off_in, int fd_out, loff_t *off_ #error "Please add support for your OS." #endif /* __linux__ , __FreeBSD__, __CYGWIN__, __sun__, __APPLE__ */ +#ifdef __cplusplus +} +#endif + #endif /* _COMPAT_FCNTL_H */