Good morning :) Here is a small patch to be able to compile xchat on the Hurd. Since I don't personaly use python plugins in xchat, I'm not sure it really works, so it'd be nice if someone using such plugins could try it ;)
Have a nice day,
Best regards,
Chris
--- xchat-2.4.1/plugins/python/python.c 2004-10-18 14:12:21.000000000 +0200
+++ xchat-2.4.1/plugins/python/python.c 2005-01-23 15:23:03.000000000 +0100
@@ -327,11 +327,14 @@ Util_BuildList(char *word[])
static void
Util_Autoload()
{
- char oldcwd[PATH_MAX];
+ /* char oldcwd[PATH_MAX]; */
+ char curdirname = get_current_dir_name();
+ char oldcwd[sizeof(curdirname)];
const char *dir_name;
struct dirent *ent;
DIR *dir;
- if (getcwd(oldcwd, PATH_MAX) == NULL)
+ /* if (getcwd(oldcwd, PATH_MAX) == NULL) */
+ if (getcwd(oldcwd, sizeof(curdirname)) == NULL)
return;
/* we need local filesystem encoding for chdir, opendir etc */
dir_name = xchat_get_info(ph, "xchatdirfs");
--
,''`. Christopher `Physicman' Bodenstein <[EMAIL PROTECTED]>
: :' : Physicman.Net : http://www.physicman.net/
`. `' Debian GNU/Hurd : http://www.debian.org/ports/hurd/
`- The Hurd wiki : http://hurd.gnufans.org/
signature.asc
Description: Digital signature
_______________________________________________ Help-hurd mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-hurd
