From dc4f3fc9464a619428fb6be600b4b632571d89a1 Mon Sep 17 00:00:00 2001 From: sf-exg Date: Sun, 1 May 2011 13:54:28 +0000 Subject: Fix compilation on systems that do not provide a definition for PATH_MAX, such as GNU/Hurd. --- src/rxvtdaemon.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/rxvtdaemon.h (limited to 'src') diff --git a/src/rxvtdaemon.h b/src/rxvtdaemon.h new file mode 100644 index 0000000..a9e1656 --- /dev/null +++ b/src/rxvtdaemon.h @@ -0,0 +1,27 @@ +#ifndef RXVT_DAEMON_H +#define RXVT_DAEMON_H + +#include + +#ifndef PATH_MAX +# define PATH_MAX 16384 +#endif + +#include "rxvtutil.h" + +struct rxvt_connection +{ + int fd; + + static char *unix_sockname (); + + void send (const char *data, int len); + void send (const char *data); + void send (int data); + + bool recv (auto_str &data, int *len = 0); + bool recv (int &data); +}; + +#endif + -- cgit v1.2.3