X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ffilter%2Fmemstream.hpp;fp=src%2Fcommon%2Ffilter%2Fmemstream.hpp;h=4fbdc02fe2bd241eaeb9fae25d92d37a3fc85946;hp=26b124a9521086b7030b9c6bae13f2a58373a241;hb=28f23191dcbf047429d51950a337a57d7a3f866a;hpb=f250b40e2179eccdb83766bf4abef5a35036c47b diff --git a/src/common/filter/memstream.hpp b/src/common/filter/memstream.hpp index 26b124a95..4fbdc02fe 100644 --- a/src/common/filter/memstream.hpp +++ b/src/common/filter/memstream.hpp @@ -11,24 +11,23 @@ #ifdef LTTNG_HAVE_FMEMOPEN #include -static inline -FILE *lttng_fmemopen(void *buf, size_t size, const char *mode) +static inline FILE *lttng_fmemopen(void *buf, size_t size, const char *mode) { return fmemopen(buf, size, mode); } #else /* LTTNG_HAVE_FMEMOPEN */ -#include -#include #include +#include +#include + /* * Fallback for systems which don't have fmemopen. Copy buffer to a * temporary file, and use that file as FILE * input. */ -static inline -FILE *lttng_fmemopen(void *buf, size_t size, const char *mode) +static inline FILE *lttng_fmemopen(void *buf, size_t size, const char *mode) { char tmpname[PATH_MAX]; size_t len;