Git init
[external/insserv.git] / packaging / 93_hurd_no_path_max.patch
1 Purpose: Try to get insserv building on hurd, by faking a PATH_MAX value.
2 Status:  Not yet submitted upstream.
3 ---
4 Index: insserv/insserv.c
5 ===================================================================
6 --- insserv.orig/insserv.c      2009-09-26 22:35:39.000000000 +0200
7 +++ insserv/insserv.c   2009-09-26 22:35:40.000000000 +0200
8 @@ -1427,6 +1427,11 @@
9      return ret;
10  }
11  
12 +#ifndef PATH_MAX
13 +/* for example hurd.  Should really dynamically aligh the buffer. */
14 +# define PATH_MAX 1024
15 +#endif
16 +
17  /*
18   * Follow symlinks, return the basename of the file pointed to by
19   * symlinks or the basename of the current path if no symlink.