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.
This commit is contained in:
Todd C. Miller
2020-05-15 18:50:04 -06:00
parent 4ea7ecffdd
commit ea1226be7c

View File

@@ -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