X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fconf.c;h=6fc3e605128181e8615c72976129c4c56d70e7da;hb=77927271f4b396ec3cb9e8e380c26d19e3589558;hp=f96be3a8175a248e8c1e6187e8e5fc5e96c8b270;hpb=1dac0189ed7311146ff2cfc6605bac81213ee90b;p=lttng-tools.git 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