Re: [gamin] some portability stuff



On Fri, Oct 01, 2004 at 12:37:15AM +0200, Michael Banck wrote:
> On Fri, Sep 24, 2004 at 12:32:23PM -0400, Daniel Veillard wrote:
> >   SEnd patch so I can know where you would like to see that appearing,
> 
> OK, I propose the following:
> 
> diff -Naur gamin-0.0.11/libgamin/fam.h gamin-0.0.11.new/libgamin/fam.h
> --- gamin-0.0.11/libgamin/fam.h 2004-09-21 13:15:13.000000000 +0200
> +++ gamin-0.0.11.new/libgamin/fam.h     2004-09-27 13:47:21.000000000 +0200
> @@ -33,6 +33,11 @@
>  /* For NAME_MAX - maximum # of chars in a filename */
>  #include "limits.h"
> 
> +/* PATH_MAX is not defined in limits.h on some platforms */
> +#ifndef PATH_MAX
> +#define PATH_MAX 4096
> +#endif
> +
>  /**
>   * Structure associated to a FAM connection
>   */

  Okay,

> diff -Naur gamin-0.0.11/server/gam_poll.c gamin-0.0.11.new/server/gam_poll.c
> --- gamin-0.0.11/server/gam_poll.c      2004-09-20 16:19:25.000000000 +0200
> +++ gamin-0.0.11.new/server/gam_poll.c  2004-09-27 13:47:31.000000000 +0200
> @@ -38,6 +38,10 @@
> 
>  #define FLAG_NEW_NODE 1 << 5
> 
> +#ifndef PATH_MAX
> +#define PATH_MAX 4096
> +#endif
> +

  I prefer to #include "fam.h" in gam_poll.c it's cleaner,
applied and commited, thanks !

Daniel


-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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