1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

script: fix compilation on GNU/Hurd (patch #7977) (thanks to Andrew Potter)

PATH_MAX is now defined in weechat-plugin.h (if not defined, for example on
GNU/Hurd), so that all plugins can use it.
This commit is contained in:
Sebastien Helleu
2013-03-25 08:14:33 +01:00
parent d654fca853
commit adbfda00f5
3 changed files with 8 additions and 8 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.4.1-dev, 2013-03-24
v0.4.1-dev, 2013-03-25
This document lists all changes for each version.
@@ -84,6 +84,7 @@ Version 0.4.1 (under dev!)
"irc_message_auth")
* ruby: fix crash with Ruby 2.0: use one array for the last 6 arguments of
function config_new_option (bug #31050)
* script: fix compilation on GNU/Hurd (patch #7977)
* script: create "script" directory on each action, just in case it has been
removed (bug #38472)
* script: add option script.scripts.autoload, add options "autoload",
+1 -7
View File
@@ -56,11 +56,9 @@
#define WEECHAT_WEBSITE_DOWNLOAD "http://www.weechat.org/download"
/* log file */
#define WEECHAT_LOG_NAME "weechat.log"
/* license */
#define WEECHAT_LICENSE_TEXT \
"WeeChat is free software; you can redistribute it and/or modify\n" \
"it under the terms of the GNU General Public License as published by\n" \
@@ -77,7 +75,6 @@
"along with WeeChat. If not, see <http://www.gnu.org/licenses/>.\n\n"
/* directory separator, depending on OS */
#ifdef _WIN32
#define DIR_SEPARATOR "\\"
#define DIR_SEPARATOR_CHAR '\\'
@@ -86,18 +83,15 @@
#define DIR_SEPARATOR_CHAR '/'
#endif
/* some systems (like GNU/Hurd) doesn't define PATH_MAX */
/* some systems like GNU/Hurd do not define PATH_MAX */
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
/* internal charset */
#define WEECHAT_INTERNAL_CHARSET "UTF-8"
/* global variables and functions */
extern int weechat_debug_core;
extern char *weechat_argv0;
extern int weechat_upgrading;
+5
View File
@@ -24,6 +24,11 @@
#include <sys/types.h>
/* some systems like GNU/Hurd do not define PATH_MAX */
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
struct t_config_option;
struct t_gui_window;
struct t_gui_buffer;