… | |
… | |
23 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
23 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
24 | *----------------------------------------------------------------------*/ |
24 | *----------------------------------------------------------------------*/ |
25 | |
25 | |
26 | #include "../config.h" |
26 | #include "../config.h" |
27 | |
27 | |
28 | #include <cstddef> // needed by freebsd for NULL used in sys/uio.h |
28 | #include <cstddef> // needed by broken bsds for NULL used in sys/uio.h |
29 | |
29 | |
|
|
30 | #include <sys/types.h> |
30 | #include <sys/uio.h> |
31 | #include <sys/uio.h> |
31 | #include <sys/types.h> |
|
|
32 | #include <sys/socket.h> |
32 | #include <sys/socket.h> |
33 | |
33 | |
34 | #include "libptytty.h" |
34 | #include "libptytty.h" |
35 | |
35 | |
36 | #ifndef CMSG_LEN // CMSG_SPACe && CMSG_LEN are rfc2292 extensions to unix |
36 | #ifndef CMSG_LEN // CMSG_SPACE && CMSG_LEN are rfc2292 extensions to unix |
37 | # define CMSG_LEN(len) (sizeof (cmsghdr) + len) |
37 | # define CMSG_LEN(len) (sizeof (cmsghdr) + len) |
38 | #endif |
38 | #endif |
39 | |
39 | |
40 | bool |
40 | bool |
41 | ptytty::send_fd (int socket, int fd) |
41 | ptytty::send_fd (int socket, int fd) |