From ea1226be7cc760ac2711cfa57ef6d23e57f343d2 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 15 May 2020 18:50:04 -0600 Subject: [PATCH] Only define WCONTINUED and WIFCONTINUED if neither are already defined. Fixes a warning on musl libc where WIFCONTINUED is defined in stdlib.h for some reason. --- include/sudo_compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sudo_compat.h b/include/sudo_compat.h index ed8aa1992..43924cc35 100644 --- a/include/sudo_compat.h +++ b/include/sudo_compat.h @@ -318,8 +318,8 @@ extern int errno; #endif /* Older systems may not support WCONTINUED */ -#ifndef WCONTINUED -# define WCONTINUED 0 +#if !defined(WCONTINUED) && !defined(WIFCONTINUED) +# define WCONTINUED 0 # define WIFCONTINUED(x) 0 #endif