Port: Remove _GNU_SOURCE, defined in config.h
[lttng-tools.git] / src / lib / lttng-ctl / load.c
index 21619a6839c83106b46692c6f19ddd9ee900b9e4..40a28bcf14b5202944c5ee666eb4ebe5846ecf5a 100644 (file)
@@ -15,7 +15,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <assert.h>
 #include <string.h>
 
@@ -83,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.026027 seconds and 5 git commands to generate.