VirtualBox

Changeset 97894 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Dec 29, 2022 3:07:50 PM (2 years ago)
Author:
vboxsync
Message:

IPRT/socket,localipc: Map AF_LOCAL to AF_UNIX if the former isn't defined (S10).

Location:
trunk/src/VBox/Runtime/r3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/localipc-posix.cpp

    r96475 r97894  
    6767#include <unistd.h>
    6868#include <sys/stat.h>
     69#ifndef AF_LOCAL
     70# define AF_LOCAL AF_UNIX
     71#endif
    6972
    7073#include "internal/magics.h"
     
    10281031                    PollFd.events  = POLLHUP | POLLERR | POLLIN;
    10291032                    Log(("RTLocalIpcSessionWaitForData: Calling poll...\n"));
    1030                     int cFds = poll(&PollFd, 1, cMillies == RT_INDEFINITE_WAIT ? -1 : cMillies);
     1033                    int cFds = poll(&PollFd, 1, cMillies == RT_INDEFINITE_WAIT ? -1 : (int)cMillies);
    10311034                    if (cFds >= 1)
    10321035                    {
  • trunk/src/VBox/Runtime/r3/socket.cpp

    r96475 r97894  
    5858# include <fcntl.h>
    5959# include <sys/uio.h>
     60# ifndef AF_LOCAL
     61#   define AF_LOCAL AF_UNIX
     62# endif
    6063#endif /* !RT_OS_WINDOWS */
    6164#include <limits.h>
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