When compiling Samba 3.0.23a on SCO OpenServer 5 I get a compile error in client/client.c: Compiling client/client.c client/client.c: In function `remote_completion': client/client.c:3000: `PATH_MAX' undeclared (first use in this function) client/client.c:3000: (Each undeclared identifier is reported only once client/client.c:3000: for each function it appears in.) make: *** [client/client.o] Error 1 The definition for PATH_MAX can be found in limits.h I am using gcc rather than the SCO compiler.
Correction. PATH_MAX is not actually in limits.h unless another conditional is defined. It would appear as though a #ifndef PATH_MAX #define PATH_MAX type construct is going to be required.
In a later module I also found MAXPATHLEN to be undefined.
duplicate of #3746 and #4121 and fixed in commit 2b3c44e4fb980335c22abcc07a88f32b13e5918f *** This bug has been marked as a duplicate of bug 3746 ***