pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/41924?usp=email )
(
1 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: vty: guard definition of _XOPEN_SOURCE ......................................................................
vty: guard definition of _XOPEN_SOURCE
Define _XOPEN_SOURCE only if it is not already provided by the build environment.
This avoids redefinition warnings/errors while ensuring required POSIX interfaces are available.
Change-Id: I4f53aff1afef02abce7cb70d1b29080ba900ff41 --- M src/vty/command.c 1 file changed, 2 insertions(+), 0 deletions(-)
Approvals: fixeria: Looks good to me, approved Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve
diff --git a/src/vty/command.c b/src/vty/command.c index c1bda8a..38c6648 100644 --- a/src/vty/command.c +++ b/src/vty/command.c @@ -33,7 +33,9 @@ #include <stdbool.h> #include <syslog.h> #include <errno.h> +#ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE +#endif #include <unistd.h> #include <ctype.h> #include <time.h>