diff options
author | Mitesh Kanjariya <mitesh@cumulusnetworks.com> | 2017-08-26 00:51:16 +0200 |
---|---|---|
committer | Mitesh Kanjariya <mitesh@cumulusnetworks.com> | 2017-08-26 00:51:16 +0200 |
commit | 1f53ef552de070d22a69558baafca8f8c5b9eecd (patch) | |
tree | de902408a3692d76d9f04cb99e0a79bb770f31d3 /lib/command.c | |
parent | lib: Fix make check failures (diff) | |
download | frr-1f53ef552de070d22a69558baafca8f8c5b9eecd.tar.xz frr-1f53ef552de070d22a69558baafca8f8c5b9eecd.zip |
Fix compilation errors for domainname
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r-- | lib/command.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c index 13fee70c6..78d8dbdc6 100644 --- a/lib/command.c +++ b/lib/command.c @@ -147,8 +147,10 @@ const char *domainname_get(void) struct utsname names; if (!host.name || !host.domainname) { +#ifdef HAVE_STRUCT_UTSNAME_DOMAINNAME uname(&names); host.domainname = XSTRDUP(MTYPE_HOST, names.domainname); +#endif } return host.domainname; } |