From: Todd C. Miller Date: Tue, 12 Nov 2013 22:14:58 +0000 (-0700) Subject: Very old systems (pre XPG 4.2) may not support MSG_WAITALL. The X-Git-Tag: SUDO_1_8_9^2~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb45f8e84db666dfa9c38673a84063792c3e0fa1;p=sudo Very old systems (pre XPG 4.2) may not support MSG_WAITALL. The likelihood of receiving a partial message is quite low so this is not a big deal. --- diff --git a/src/sudo_exec.h b/src/sudo_exec.h index 3b5a5f7d4..e67206271 100644 --- a/src/sudo_exec.h +++ b/src/sudo_exec.h @@ -17,6 +17,13 @@ #ifndef _SUDO_EXEC_H #define _SUDO_EXEC_H +/* + * Older systems may not support MSG_WAITALL but it shouldn't really be needed. + */ +#ifndef MSG_WAITALL +# define MSG_WAITALL 0 +#endif + /* * Special values to indicate whether continuing in foreground or background. */