]> granicus.if.org Git - sudo/commitdiff
Very old systems (pre XPG 4.2) may not support MSG_WAITALL. The
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 12 Nov 2013 22:14:58 +0000 (15:14 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 12 Nov 2013 22:14:58 +0000 (15:14 -0700)
likelihood of receiving a partial message is quite low so this is
not a big deal.

src/sudo_exec.h

index 3b5a5f7d40add29cf0b678af759743cf9ebda9ca..e672062715360462438b17368a88d6b56ea04878 100644 (file)
 #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.
  */