--- rxvt-unicode/src/fdpass.C 2006/01/06 05:37:59 1.2 +++ rxvt-unicode/src/fdpass.C 2006/01/22 01:00:46 1.8 @@ -1,4 +1,7 @@ -/*--------------------------------*-C-*---------------------------------* +// This file is part of libptytty. Do not make local modifications. +// http://software.schmorp.de/pkg/libptytty + +/*----------------------------------------------------------------------* * File: fdpass.C *----------------------------------------------------------------------* * @@ -20,23 +23,20 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *----------------------------------------------------------------------*/ -#include "../config.h" /* NECESSARY */ - -#if ENABLE_FRILLS && HAVE_UNIX_FDPASS +#include "../config.h" +#include #include #include -#include "fdpass.h" - -#include //d +#include "libptytty.h" #ifndef CMSG_LEN // CMSG_SPACe && CMSG_LEN are rfc2292 extensions to unix # define CMSG_LEN(len) (sizeof (cmsghdr) + len) #endif int -rxvt_send_fd (int socket, int fd) +ptytty::send_fd (int socket, int fd) { msghdr msg; iovec iov; @@ -66,7 +66,7 @@ } int -rxvt_recv_fd (int socket) +ptytty::recv_fd (int socket) { msghdr msg; iovec iov; @@ -101,5 +101,3 @@ return *(int *)CMSG_DATA (cmsg); } -#endif -