From 7a26e19d4f43f71b4f6940ef9219589d7d5e7c05 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 4 Nov 2019 10:34:14 +0100 Subject: [PATCH] Cygwin: devices: drop MAX_CONSOLES and fix FH_CONS_MAX FH_CONS_MAX should refelect the fact that we allow 128 consoles, even if it's unused. Suggested-by: Achim Gratz Signed-off-by: Corinna Vinschen --- winsup/cygwin/devices.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/winsup/cygwin/devices.h b/winsup/cygwin/devices.h index 47156f275..5a077c2ef 100644 --- a/winsup/cygwin/devices.h +++ b/winsup/cygwin/devices.h @@ -19,7 +19,6 @@ typedef unsigned short _minor_t; #include #include "cygheap_malloc.h" -#define MAX_CONSOLES 63 enum fh_devices { DEV_TTY_MAJOR = 5, @@ -31,7 +30,7 @@ enum fh_devices DEV_CONS_MAJOR = 3, FH_CONS = FHDEV (DEV_CONS_MAJOR, 0), - FH_CONS_MAX = FHDEV (DEV_CONS_MAJOR, MAX_CONSOLES), + FH_CONS_MAX = FHDEV (DEV_CONS_MAJOR, 127), DEV_PTYM_MAJOR = 128, FH_PTYM = FHDEV (DEV_PTYM_MAJOR, 0), -- 2.43.5