Port: Remove _GNU_SOURCE, defined in config.h
[lttng-tools.git] / src / lib / lttng-ctl / load.c
index 3599503e51ad5b08eba677a01b213a107bad7ad1..40a28bcf14b5202944c5ee666eb4ebe5846ecf5a 100644 (file)
@@ -15,7 +15,6 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#define _GNU_SOURCE
 #define _LGPL_SOURCE
 #include <assert.h>
 #include <string.h>
@@ -84,7 +83,7 @@ int lttng_load_session_attr_set_session_name(
                size_t len;
 
                len = strlen(session_name);
-               if (len >= NAME_MAX) {
+               if (len >= LTTNG_NAME_MAX) {
                        ret = -LTTNG_ERR_INVALID;
                        goto error;
                }
This page took 0.024543 seconds and 5 git commands to generate.