xserver: Branch 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Feb 17 18:11:43 UTC 2025
include/misc.h | 11 -----------
1 file changed, 11 deletions(-)
New commits:
commit 9dc26f6743bcf4f2a3586b93b4153f4e8691d1a9
Author: Enrico Weigelt, metux IT consult <info at metux.net>
Date: Mon Feb 17 16:47:37 2025 +0100
os: no need to defined PATH_MAX
All our supported platforms define it, so no need to do
it on our own.
Signed-off-by: Enrico Weigelt, metux IT consult <info at metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1803>
diff --git a/include/misc.h b/include/misc.h
index 615da815d..890e45ffa 100644
--- a/include/misc.h
+++ b/include/misc.h
@@ -176,17 +176,6 @@ typedef struct _xReq *xReqPtr;
#endif
-#ifndef PATH_MAX
-#include <sys/param.h>
-#ifndef PATH_MAX
-#ifdef MAXPATHLEN
-#define PATH_MAX MAXPATHLEN
-#else
-#define PATH_MAX 1024
-#endif
-#endif
-#endif
-
/**
* Calculate the number of bytes needed to hold bits.
* @param bits The minimum number of bits needed.
More information about the xorg-commit
mailing list