[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] tools/libxenstat: ensure strnlen() declaration is visible



commit 01d411fd2d2e5045a32847d6d7729bb574753e05
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu Jan 14 13:03:01 2021 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Jan 14 13:03:01 2021 +0100

    tools/libxenstat: ensure strnlen() declaration is visible
    
    Its guard was updated such that it is visible by default when POSIX 2008
    was adopted by glibc. It's not visible by default on older glibc.
    
    Fixes: 40fe714ca424 ("tools/libs/stat: use memcpy instead of strncpy in 
getBridge")
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Reviewed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/libs/stat/xenstat_linux.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/libs/stat/xenstat_linux.c b/tools/libs/stat/xenstat_linux.c
index e0d242e1bc..c00b26d4d8 100644
--- a/tools/libs/stat/xenstat_linux.c
+++ b/tools/libs/stat/xenstat_linux.c
@@ -20,6 +20,7 @@
  * Use is subject to license terms.
  */
 
+#define _GNU_SOURCE
 #include <fcntl.h>
 #include <dirent.h>
 #include <sys/types.h>
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.