# [PATCH] define MAXPATHLEN for hosts that don't support it

2 messages from 2005-12-13 to 2005-12-13. Participants: Martin Atukunda, Junio C Hamano.
Thread: https://gitlist.dev/t/2821

## Martin Atukunda, 2005-12-13 12:21

Subject: [PATCH] define MAXPATHLEN for hosts that don't support it
Message-ID: <11344764941807-git-send-email-matlads@dsmagic.com>
URL: https://gitlist.dev/e/11344764941807-git-send-email-matlads%40dsmagic.com

```
---

 git-compat-util.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

e7aa01129989561dcd069db41a2da4a133dcff61
diff --git a/git-compat-util.h b/git-compat-util.h
index 4185b12..ead0ede 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -110,4 +110,7 @@ static inline int sane_case(int x, int h
 	return x;
 }
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 256
+#endif
 #endif
-- 
0.99.9.GIT

```

## Junio C Hamano, 2005-12-13 20:51

Subject: Re: [PATCH] define MAXPATHLEN for hosts that don't support it
Message-ID: <7virts90w8.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7virts90w8.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <11344764941807-git-send-email-matlads@dsmagic.com>

```
What platform needs this, may I ask?

```
