[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patch for xchat to compile on the Hurd

From: Alfred M. Szmidt
Subject: Re: patch for xchat to compile on the Hurd
Date: Mon, 07 Feb 2005 23:18:05 +0100

   --- xchat-2.4.1.orig/plugins/python/python.c 2004-10-18 14:12:21.000000000 =
   +++ xchat-2.4.1/plugins/python/python.c      2005-02-07 22:30:40.000000000 
   @@ -327,12 +327,18 @@ Util_BuildList(char *word[])
    static void
   -    char oldcwd[PATH_MAX];
   +    #ifdef _GNU_SOURCE

This is just so wrong and leads to broken programs, instead of
depending on _GNU_SOURCE to be defined, check if
get_current_dir_name() exists on the system in, and do:

  char ...

Obviously, I'm assuming that xchat uses autoconf here. :-)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]