[PATCH] PATH_MAX may not be defined

Steve Bennett steveb at workware.net.au
Mon Aug 29 10:43:33 UTC 2011


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
+
 #define MAXSELECTED  256	/* max number of "selected" paths */
 static const char *selected[MAXSELECTED];	/* paths selected for tracing */
 
-- 
1.7.5.4





More information about the Strace-devel mailing list