diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-01-14 17:37:55 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-01-14 17:37:55 +0000 |
commit | fa3b6b6c9ca3240366e6ec985d339a07681cd9c6 (patch) | |
tree | 7c3dfd18b7ec6a2de047d7ac82aef2057bfc3b48 /src/modules.c | |
parent | 33862809dfc9df2bf039dfbf47f7524c00947b54 (diff) |
- Quick and dirty workaround to fix build on GNU/Hurd
because of undefined PATH_MAX
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1737 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src/modules.c')
-rw-r--r-- | src/modules.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules.c b/src/modules.c index a5c8ae9..23a5a0f 100644 --- a/src/modules.c +++ b/src/modules.c @@ -299,7 +299,7 @@ load_all_modules(int warn) { DIR *system_module_dir = NULL; struct dirent *ldirent = NULL; - char module_fq_name[PATH_MAX + 1]; + char module_fq_name[HYB_PATH_MAX + 1]; if ((system_module_dir = opendir(AUTOMODPATH)) == NULL) { @@ -350,7 +350,7 @@ load_conf_modules(void) void load_core_modules(int warn) { - char module_name[PATH_MAX + 1]; + char module_name[HYB_PATH_MAX + 1]; int i = 0; for (; core_module_table[i]; ++i) @@ -378,7 +378,7 @@ int load_one_module(const char *path) { dlink_node *ptr = NULL; - char modpath[PATH_MAX + 1]; + char modpath[HYB_PATH_MAX + 1]; struct stat statbuf; DLINK_FOREACH(ptr, mod_paths.head) |