[lxc-devel] [lxc/master] log: set GNU_SOURCE as it might help coverity along

brauner on Github lxc-bot at linuxcontainers.org
Wed Apr 15 13:56:50 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200415/786dcbdb/attachment.bin>
-------------- next part --------------
From b10cb59b300bde6ff5fac6c3c8545698fcaa2b5d Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Wed, 15 Apr 2020 15:55:57 +0200
Subject: [PATCH] log: set GNU_SOURCE as it might help coverity along

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/lxc/log.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lxc/log.h b/src/lxc/log.h
index d280656241..881e97130d 100644
--- a/src/lxc/log.h
+++ b/src/lxc/log.h
@@ -3,6 +3,9 @@
 #ifndef __LXC_LOG_H
 #define __LXC_LOG_H
 
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
 #include <errno.h>
 #include <stdarg.h>
 #include <stdio.h>


More information about the lxc-devel mailing list