Re: [gamin] some portability stuff



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
  */
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
+

 /*
  * Special monitoring modes



bye,

Michael



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