]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
env: port to mingw
authorCollin Funk <collin.funk1@gmail.com>
Wed, 10 Jun 2026 04:09:43 +0000 (21:09 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Wed, 10 Jun 2026 04:09:43 +0000 (21:09 -0700)
* src/env.c (IGNORE): Undefine the macro so it does not break the
SIGNAL_MODE enum.

src/env.c

index 3e4f9b3fca3726b6758931c47cb66fdbdec406bc..ea7ff70679d4a5550156b29be433e284cc69f575 100644 (file)
--- 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,