From 55f7f94a6ff5aada208c32b716881a55078b26bf Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Mon, 25 Sep 2023 21:36:02 +0100 Subject: [PATCH] Additional fix for compilation with "--disable-ipc". --- src/pv/cursor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pv/cursor.c b/src/pv/cursor.c index 51a3b55..81a88af 100644 --- a/src/pv/cursor.c +++ b/src/pv/cursor.c @@ -665,6 +665,7 @@ void pv_crs_fini(pvstate_t state) pv_write_retry(STDERR_FILENO, cup_cmd, strlen(cup_cmd)); /* flawfinder: ignore */ /* flawfinder - pv_snprintf() always \0-terminates (see above). */ +#ifdef HAVE_IPC /* * If any other "pv -c" instances have set the terminal TOSTOP * attribute, set our local flag so pv_sig_fini() will know about @@ -677,8 +678,6 @@ void pv_crs_fini(pvstate_t state) } } - -#ifdef HAVE_IPC pv_crs_ipccount(state); if (NULL != state->crs_shared) { (void) shmdt(state->crs_shared);