VirtualBox

Changeset 85737 in vbox


Ignore:
Timestamp:
Aug 12, 2020 9:17:50 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139885
Message:

Main/HostUpdateImpl.cpp: Only enable the core code when we build with libcurl (VBOX_WITH_HOST_UPDATE_CHECK) as not all OEMs includes cURL. bugref:7983

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Main/Makefile.kmk

    r85683 r85737  
    477477        $(if $(VBOX_USB_WITH_INOTIFY),VBOX_USB_WITH_INOTIFY,) \
    478478        $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE,) \
     479        $(if $(VBOX_WITH_LIBCURL),VBOX_WITH_HOST_UPDATE_CHECK,) \
    479480        $(if-expr defined(VBOX_WITH_SDS),VBOX_WITH_SDS,)
    480481ifdef VBOX_WITH_USB
  • TabularUnified trunk/src/VBox/Main/include/HostUpdateImpl.h

    r85735 r85737  
    4949    /** @} */
    5050
     51#ifdef VBOX_WITH_HOST_UPDATE_CHECK
    5152    Utf8Str i_platformInfo();
    5253    class UpdateCheckTask;
     
    5556    HRESULT i_checkForVBoxUpdateInner(RTHTTP hHttp, com::Utf8Str const &strUrl, com::Utf8Str const &strUserAgent,
    5657                                      ComPtr<ISystemProperties> const &ptrSystemProperties);
     58#endif
    5759
    5860    /** @name Data members.
  • TabularUnified trunk/src/VBox/Main/src-server/HostUpdateImpl.cpp

    r85736 r85737  
    5252////////////////////////////////////////////////////////////////////////////////
    5353
     54#ifdef VBOX_WITH_HOST_UPDATE_CHECK
    5455
    5556class HostUpdate::UpdateCheckTask : public ThreadTask
     
    9596    Utf8Str strPlatform;
    9697
    97 #if defined (RT_OS_WINDOWS)
     98# if defined (RT_OS_WINDOWS)
    9899    strPlatform = "win";
    99 #elif defined (RT_OS_LINUX)
     100# elif defined (RT_OS_LINUX)
    100101    strPlatform = "linux";
    101 #elif defined (RT_OS_DARWIN)
     102# elif defined (RT_OS_DARWIN)
    102103    strPlatform = "macosx";
    103 #elif defined (RT_OS_OS2)
     104# elif defined (RT_OS_OS2)
    104105    strPlatform = "os2";
    105 #elif defined (RT_OS_FREEBSD)
     106# elif defined (RT_OS_FREEBSD)
    106107    strPlatform = "freebsd";
    107 #elif defined (RT_OS_SOLARIS)
     108# elif defined (RT_OS_SOLARIS)
    108109    strPlatform = "solaris";
    109 #else
     110# else
    110111    strPlatform = "unknown";
    111 #endif
     112# endif
    112113
    113114    /* The format is <system>.<bitness>: */
     
    116117    /* Add more system information: */
    117118    int vrc;
    118 #ifdef RT_OS_LINUX
     119# ifdef RT_OS_LINUX
    119120    // WORKAROUND:
    120121    // On Linux we try to generate information using script first of all..
     
    224225
    225226    if (RT_FAILURE(vrc))
    226 #endif /* RT_OS_LINUX */
     227# endif /* RT_OS_LINUX */
    227228    {
    228229        /* Use RTSystemQueryOSInfo: */
     
    493494                    hrc = i_checkForVBoxUpdate();
    494495                    break;
    495 #if 0
     496# if 0
    496497                case UpdateCheckType_ExtensionPack:
    497498                    hrc = i_checkForExtPackUpdate();
     
    501502                    hrc = i_checkForGuestAdditionsUpdate();
    502503                    break;
    503 #endif
     504# endif
    504505                default:
    505506                    hrc = setError(E_FAIL, tr("Update check type %d is not implemented"), pTask->m_checkType);
     
    522523}
    523524
     525#endif /* VBOX_WITH_HOST_UPDATE_CHECK */
     526
     527
    524528////////////////////////////////////////////////////////////////////////////////
    525529//
     
    573577                                ComPtr<IProgress> &aProgress)
    574578{
     579#ifdef VBOX_WITH_HOST_UPDATE_CHECK
    575580    /* Validate input */
    576581    switch (aCheckType)
     
    632637
    633638    return rc;
     639#else  /* !VBOX_WITH_HOST_UPDATE_CHECK */
     640    return setError(E_NOTIMPL, tr("Update checking support was not compiled into this VirtualBox build"));
     641#endif /* !VBOX_WITH_HOST_UPDATE_CHECK */
    634642}
    635643
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette