mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
Userland: Move HOST_NAME_MAX to limits.h
POSIX mandates its definition there.
This commit is contained in:
parent
f9d82ecf18
commit
b3e070b2f3
Notes:
sideshowbarker
2024-07-18 19:01:16 +09:00
Author: https://github.com/boricj Commit: https://github.com/SerenityOS/serenity/commit/b3e070b2f3f Pull-request: https://github.com/SerenityOS/serenity/pull/6671 Reviewed-by: https://github.com/linusg
|
@ -12,6 +12,8 @@
|
|||
# define PAGE_SIZE 4096
|
||||
#endif
|
||||
|
||||
#define HOST_NAME_MAX 64
|
||||
|
||||
#define PATH_MAX 4096
|
||||
#if !defined MAXPATHLEN && defined PATH_MAX
|
||||
# define MAXPATHLEN PATH_MAX
|
||||
|
|
|
@ -129,8 +129,6 @@ enum {
|
|||
_PC_VDISABLE
|
||||
};
|
||||
|
||||
#define HOST_NAME_MAX 64
|
||||
|
||||
#define R_OK 4
|
||||
#define W_OK 2
|
||||
#define X_OK 1
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/DirIterator.h>
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
|
Loading…
Reference in a new issue