diff options
author | sf-exg <sf-exg> | 2011-05-01 13:54:28 +0000 |
---|---|---|
committer | sf-exg <sf-exg> | 2011-05-01 13:54:28 +0000 |
commit | dc4f3fc9464a619428fb6be600b4b632571d89a1 (patch) | |
tree | 6b4afae7efac2e56301f57d6e0032d8a3d99ab3d /src | |
parent | 474ac4c77acc930b9a08a8f47a58857bf3367302 (diff) |
Fix compilation on systems that do not provide a definition for
PATH_MAX, such as GNU/Hurd.
Diffstat (limited to 'src')
-rw-r--r-- | src/rxvtdaemon.h | 27 |
1 files changed, 27 insertions, 0 deletions
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 <limits.h> + +#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 + |