coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] env: port to mingw


From: Collin Funk
Subject: [PATCH] env: port to mingw
Date: Tue, 9 Jun 2026 21:10:39 -0700

* src/env.c (IGNORE): Undefine the macro so it does not break the
SIGNAL_MODE enum.
---
 src/env.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/env.c b/src/env.c
index 3e4f9b3fc..ea7ff7067 100644
--- a/src/env.c
+++ b/src/env.c
@@ -48,6 +48,10 @@ static bool dev_debug;
 static char *varname;
 static idx_t vnlen;
 
+/* On mingw, winbase.h defines this to zero.  Undefine it so we can use it
+   in the enum.  */
+#undef IGNORE
+
 /* Possible actions on each signal.  */
 enum SIGNAL_MODE {
   UNCHANGED = 0,
-- 
2.54.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]