git: 9ecf4bd8e904 - stable/13 - md5: portability fix -- include stdbool.h explicitly

Stefan Eßer se at FreeBSD.org
Mon Jun 28 16:04:20 UTC 2021


The branch stable/13 has been updated by se:

URL: https://cgit.FreeBSD.org/src/commit/?id=9ecf4bd8e90470d4e282106225a5fbb05a538c2a

commit 9ecf4bd8e90470d4e282106225a5fbb05a538c2a
Author:     Warner Losh <imp at FreeBSD.org>
AuthorDate: 2021-05-20 17:26:46 +0000
Commit:     Stefan Eßer <se at FreeBSD.org>
CommitDate: 2021-06-28 16:03:38 +0000

    md5: portability fix -- include stdbool.h explicitly
    
    stdbool.h needs to be included to use type bool variables. Due to
    namespace pollution, this gets brought in on FreeBSD, but not on
    other systems. Include it explicilty.
    
    Noticed by:             arichards@
    Sponsored by:           Netflix
    
    (cherry picked from commit d0ea5e467f3c44909667c5ee90c3d26653fb6687)
---
 sbin/md5/md5.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sbin/md5/md5.c b/sbin/md5/md5.c
index 4381ef124c7b..e553d4c56e85 100644
--- a/sbin/md5/md5.c
+++ b/sbin/md5/md5.c
@@ -34,6 +34,7 @@ __FBSDID("$FreeBSD$");
 #include <sha512.h>
 #include <sha512t.h>
 #include <skein.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>


More information about the dev-commits-src-all mailing list