Timur Davydov has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/41924?usp=email )
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(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/24/41924/1 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: newchange Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I4f53aff1afef02abce7cb70d1b29080ba900ff41 Gerrit-Change-Number: 41924 Gerrit-PatchSet: 1 Gerrit-Owner: Timur Davydov <[email protected]>
