mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-30 21:53:25 +00:00
Consolidate all the PATH_MAX handling into misc.h
Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
This commit is contained in:
parent
021393d1b8
commit
d17a9fb841
7 changed files with 19 additions and 58 deletions
19
os/access.c
19
os/access.c
|
|
@ -165,17 +165,6 @@ SOFTWARE.
|
|||
|
||||
#endif /* WIN32 */
|
||||
|
||||
#ifndef PATH_MAX
|
||||
#include <sys/param.h>
|
||||
#ifndef PATH_MAX
|
||||
#ifdef MAXPATHLEN
|
||||
#define PATH_MAX MAXPATHLEN
|
||||
#else
|
||||
#define PATH_MAX 1024
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#define X_INCLUDE_NETDB_H
|
||||
#include <X11/Xos_r.h>
|
||||
|
|
@ -185,14 +174,6 @@ SOFTWARE.
|
|||
|
||||
#include "xace.h"
|
||||
|
||||
#ifndef PATH_MAX
|
||||
#ifdef MAXPATHLEN
|
||||
#define PATH_MAX MAXPATHLEN
|
||||
#else
|
||||
#define PATH_MAX 1024
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Bool defeatAccessControl = FALSE;
|
||||
|
||||
#define acmp(a1, a2, len) memcmp((char *)(a1), (char *)(a2), len)
|
||||
|
|
|
|||
Loading…
Reference in a new issue