[PATCH] PATH_MAX may not be defined

Dmitry V. Levin ldv at altlinux.org
Mon Aug 29 19:30:00 UTC 2011


On Mon, Aug 29, 2011 at 08:43:33PM +1000, Steve Bennett wrote:
> So define something reasonable in this case
> 
> Signed-off-by: Steve Bennett <steveb at workware.net.au>
> ---
>  pathtrace.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/pathtrace.c b/pathtrace.c
> index b2efd33..553fef7 100644
> --- a/pathtrace.c
> +++ b/pathtrace.c
> @@ -40,6 +40,10 @@
>  
>  #include "syscall.h"
>  
> +#ifndef PATH_MAX
> +#define PATH_MAX 1024
> +#endif

I wonder what kind of Linux platform might that be?


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20110829/a0dd54bf/attachment.bin>


More information about the Strace-devel mailing list