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>

--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/41924?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I4f53aff1afef02abce7cb70d1b29080ba900ff41
Gerrit-Change-Number: 41924
Gerrit-PatchSet: 2
Gerrit-Owner: Timur Davydov <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to