From 7f32a099f92cd6b3d980840a840d9750d0d2cf3a Mon Sep 17 00:00:00 2001 From: Sven Geuer <68420948@users.noreply.github.com> Date: Tue, 9 Dec 2025 16:58:00 +0100 Subject: [PATCH] Makefile: Fix issue #101 by not emitting '-DSETPROCTITLE' with MSYS2. --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 0aa9db2..a925a89 100644 --- a/Makefile +++ b/Makefile @@ -14,19 +14,19 @@ OPTFLAGS += -DHAVE_GETOPT_LONG # Comment if you don't have/want ssl OPTFLAGS += -DUSE_SSL -# Most systems -OPTFLAGS += -DSETPROCTITLE -DSPT_TYPE=2 - -# System dependant blocks... if your system is listed below, uncomment -# the relevant lines - # MSYS # The current version of gcc from MSYS defines __MSYS__ and __CYGWIN__. # To avoid to change the code, simply define CYGWIN additionally. ifneq ($(filter $(MSYSTEM),MSYS MINGW32 MINGW64 UCRT64),) CFLAGS += -DCYGWIN +else +# Most systems, MSYS definitely not +OPTFLAGS += -DSETPROCTITLE -DSPT_TYPE=2 endif +# System dependant blocks... if your system is listed below, uncomment +# the relevant lines + # OpenBSD #OPTFLAGS += -DHAVE_SYS_PSTAT_H