chiark / gitweb /
missing.h: add AF_VSOCK bits
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 10 Jan 2017 13:35:18 +0000 (13:35 +0000)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:35 +0000 (17:58 +0200)
commitdd6bbfc14c20df55461965ae6108cc6184263712
tree0357e5c930f7aabbb82866f124f95104cab0399b
parentbbab4cb0797329f2b254100337a891f5849bb17a
missing.h: add AF_VSOCK bits

Ubuntu 14.04 (Trusty) kernel header packages ship without
<linux/vm_sockets.h>.  Only struct sockaddr_vm and VMADDR_CID_ANY will
be needed by elogind and they are simple enough to go in missing.h.

CentOS 7 <sys/socket.h> does not define AF_VSOCK.  Define it so the code
can compile although actual socket(2) calls may fail at runtime if the
address family isn't available.
src/basic/missing.h