diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/fifo/fifo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/fifo/fifo.c b/src/plugins/fifo/fifo.c index c0e57d086..4a79e8ec6 100644 --- a/src/plugins/fifo/fifo.c +++ b/src/plugins/fifo/fifo.c @@ -26,6 +26,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <dirent.h> +#include <limits.h> #include <fcntl.h> #include "../weechat-plugin.h" @@ -39,6 +40,10 @@ WEECHAT_PLUGIN_AUTHOR("FlashCode <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE("GPL3"); +#ifndef PATH_MAX + #define PATH_MAX 4096 +#endif + #define FIFO_FILENAME_PREFIX "weechat_fifo_" struct t_weechat_plugin *weechat_fifo_plugin = NULL; |