VirtualBox

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


Ignore:
Timestamp:
Dec 29, 2022 3:07:50 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154984
Message:

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

File:
1 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                    {
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