VirtualBox

Ignore:
Timestamp:
Mar 18, 2021 12:25:56 PM (4 years ago)
Author:
vboxsync
Message:

One more small Solaris-specific build warning fix:

HostServices/auth/pam: Solaris has a different PAM conversation function prototype than FreeBSD/Linux/etc.: Sun followed the X/Open specification whereas the open source camp diverged on the 'const' status of the pam_message argument.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/auth/pam/VBoxAuthPAM.c

    r82968 r88191  
    245245} PamContext;
    246246
     247#if defined(RT_OS_SOLARIS)
     248static int conv (int num_msg, struct pam_message **msg,
     249                 struct pam_response **resp, void *appdata_ptr)
     250#else
    247251static int conv (int num_msg, const struct pam_message **msg,
    248252                 struct pam_response **resp, void *appdata_ptr)
     253#endif
    249254{
    250255    int i;
Note: See TracChangeset for help on using the changeset viewer.

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