summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsf-exg <sf-exg>2011-05-01 13:54:28 +0000
committersf-exg <sf-exg>2011-05-01 13:54:28 +0000
commitdc4f3fc9464a619428fb6be600b4b632571d89a1 (patch)
tree6b4afae7efac2e56301f57d6e0032d8a3d99ab3d
parent474ac4c77acc930b9a08a8f47a58857bf3367302 (diff)
Fix compilation on systems that do not provide a definition for
PATH_MAX, such as GNU/Hurd.
-rw-r--r--src/rxvtdaemon.h27
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
+