X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fconf.c;h=6fc3e605128181e8615c72976129c4c56d70e7da;hp=f96be3a8175a248e8c1e6187e8e5fc5e96c8b270;hb=09b72f7aa737f46196db18bcdf3bc947a08c27a2;hpb=1dac0189ed7311146ff2cfc6605bac81213ee90b diff --git a/src/bin/lttng/conf.c b/src/bin/lttng/conf.c index f96be3a81..6fc3e6051 100644 --- a/src/bin/lttng/conf.c +++ b/src/bin/lttng/conf.c @@ -15,7 +15,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE #define _LGPL_SOURCE #include #include @@ -184,6 +183,7 @@ int _config_read_session_name(char *path, char **name) int ret = 0; FILE *fp; char var[NAME_MAX], *session_name; + #if (NAME_MAX == 255) #define NAME_MAX_SCANF_IS_A_BROKEN_API "254" #endif