From 438fdd91a66d36b0449ecb5dae54310f6bf5109b Mon Sep 17 00:00:00 2001 From: David Given Date: Sat, 16 Jul 2022 23:21:13 +0200 Subject: [PATCH] Windows doesn't have NAME_MAX or any interesting signals. --- util/ego/em_ego/em_ego.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/util/ego/em_ego/em_ego.c b/util/ego/em_ego/em_ego.c index 74ca2c83a..0ca4476b0 100644 --- a/util/ego/em_ego/em_ego.c +++ b/util/ego/em_ego/em_ego.c @@ -59,10 +59,10 @@ static const struct #define MAXARGS 1024 /* mar # of args */ #define NTEMPS 4 /* # of temporary files; not tunable */ -static char tmpbase[NAME_MAX]; -static char ddump[NAME_MAX]; /* data label dump file */ -static char pdump[NAME_MAX]; /* procedure name dump file */ -static char tmpbufs[NTEMPS * 2][NAME_MAX]; +static char tmpbase[PATH_MAX]; +static char ddump[PATH_MAX]; /* data label dump file */ +static char pdump[PATH_MAX]; /* procedure name dump file */ +static char tmpbufs[NTEMPS * 2][PATH_MAX]; static int O2phases[] = { /* Passes for -O2 */ CJ, BO, SP, 0 @@ -320,10 +320,6 @@ int main(int argc, char* argv[]) int opt; int i; - if (signal(SIGHUP, catch) == SIG_IGN) - (void)signal(SIGHUP, SIG_IGN); - if (signal(SIGQUIT, catch) == SIG_IGN) - (void)signal(SIGQUIT, SIG_IGN); if (signal(SIGINT, catch) == SIG_IGN) (void)signal(SIGINT, SIG_IGN); prog_name = argv[0];