pespin submitted this change.
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
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(-)
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 change 41924. To unsubscribe, or for help writing mail filters, visit settings.