mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 14:07:45 +00:00
29 lines
966 B
Diff
29 lines
966 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: SeekingBlues <seekingblues@gmail.com>
|
|
Date: Fri, 3 Jun 2022 16:05:10 -0500
|
|
Subject: [PATCH] Do not define ESTALE in config.h.in
|
|
|
|
In ccache, `config.h` is included by the `-include` compiler option,
|
|
which means that it is included before any libc headers. This doesn't
|
|
cause any problems on systems that redefine this macro when libc headers
|
|
are included, but on Serenity, it breaks our definition of the
|
|
`ErrnoCode` enum.
|
|
---
|
|
cmake/config.h.in | 4 ----
|
|
1 file changed, 4 deletions(-)
|
|
|
|
diff --git a/cmake/config.h.in b/cmake/config.h.in
|
|
index 2778909eab08167d505b4cda708bb177af0f9531..faea315896c47f38e17ac9eeaf1ccf005d546b7f 100644
|
|
--- a/cmake/config.h.in
|
|
+++ b/cmake/config.h.in
|
|
@@ -202,10 +202,6 @@ typedef int pid_t;
|
|
# define O_TEXT 0
|
|
#endif
|
|
|
|
-#ifndef ESTALE
|
|
-# define ESTALE -1
|
|
-#endif
|
|
-
|
|
#define SYSCONFDIR "@CONFIG_SYSCONFDIR_C_ESCAPED@"
|
|
|
|
#cmakedefine INODE_CACHE_SUPPORTED
|