X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Flttng%2Flttng.h;h=a918ff2f229230e6bbe9f3e583fbe3ef6810e9db;hb=1124da525fd5271809172a9820029ae4a8821ccf;hp=9e3924e67656bf174dc373beb689078d715bc510;hpb=27babd3a0a164f71d4dc02884ef20099ddfc6755;p=lttng-tools.git diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h index 9e3924e67..a918ff2f2 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -23,7 +23,17 @@ #define LTTNG_H #include +/* + * Necessary to include the fixed width type limits on glibc versions older + * than 2.18 when building with a C++ compiler. + */ +#ifndef __STDC_LIMIT_MACROS +#define __STDC_LIMIT_MACROS +#include +#undef __STDC_LIMIT_MACROS +#else /* #ifndef __STDC_LIMIT_MACROS */ #include +#endif /* #else #ifndef __STDC_LIMIT_MACROS */ #include /* Error codes that can be returned by API calls */ @@ -326,12 +336,13 @@ struct lttng_calibrate { * * The structures should be initialized to zero before use. */ -#define LTTNG_SESSION_PADDING1 16 +#define LTTNG_SESSION_PADDING1 12 struct lttng_session { char name[NAME_MAX]; /* The path where traces are written */ char path[PATH_MAX]; uint32_t enabled; /* enabled/started: 1, disabled/stopped: 0 */ + uint32_t snapshot_mode; char padding[LTTNG_SESSION_PADDING1]; };