Ticket #75: avahi-ticket75-return0.patch

File avahi-ticket75-return0.patch, 498 bytes (added by tedp, 5 years ago)

Test better C++ code - fixes configure failure when CXXFLAGS include -Werror

  • configure.ac

     
    6060 
    6161AC_CACHE_CHECK([whether the C++ compiler works], [avahi_cv_sys_cxx_works], [ 
    6262    AC_LANG_PUSH([C++]) 
    63     AC_COMPILE_IFELSE([int main() { }], [avahi_cv_sys_cxx_works=yes], 
     63    AC_COMPILE_IFELSE([int main() { return 0; }], [avahi_cv_sys_cxx_works=yes], 
    6464        [avahi_cv_sys_cxx_works=no]) 
    6565    AC_LANG_POP([C++]) 
    6666    ])