zbxsysinfo: simple.c should include zbxip.h unconditionally to avoid compilation issues

XMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: None

      Building zbxsysinfo without curl results in

      simple.c:60:82: error: implicit declaration of function ‘zbx_join_hostport’ [-Wimplicit-function-declaration] 60 | zabbix_log(LOG_LEVEL_DEBUG, "LDAP - initialization failed [%s]", zbx_join_hostport(host_port,
      

      This is because if `HAVE_LIBCURL` is not defined, the `zbxip.h` header which declares `zbx_join_hostport` is not included.

      Downstream Gentoo bug report: https://bugs.gentoo.org/964636

            Assignee:
            Zabbix Development Team
            Reporter:
            Florian Schmaus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: