Performance: define _LGPL_SOURCE in LGPL c files
[lttng-ust.git] / liblttng-ust / lttng-context-ip.c
index 6f3edf83b65903c4a9ff8bbac023fa681ae88c0c..fb9229543194d91b6df66a36e447fa4bb59fb314 100644 (file)
@@ -20,6 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#define _LGPL_SOURCE
 #include <sys/types.h>
 #include <unistd.h>
 #include <lttng/ust-events.h>
@@ -27,7 +28,7 @@
 #include <lttng/ringbuffer-config.h>
 
 static
-size_t ip_get_size(size_t offset)
+size_t ip_get_size(struct lttng_ctx_field *field, size_t offset)
 {
        size_t size = 0;
 
@@ -69,5 +70,6 @@ int lttng_add_ip_to_ctx(struct lttng_ctx **ctx)
        field->event_field.type.u.basic.integer.encoding = lttng_encode_none;
        field->get_size = ip_get_size;
        field->record = ip_record;
+       lttng_context_update(*ctx);
        return 0;
 }
This page took 0.02264 seconds and 4 git commands to generate.