]> granicus.if.org Git - sudo/commitdiff
Use HAVE_STDBOOL_H to detect systems w/o stdbool.h.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 10 Mar 2017 18:49:07 +0000 (11:49 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 10 Mar 2017 18:49:07 +0000 (11:49 -0700)
Bug #778

plugins/sudoers/rcstr.c

index 0f8e1a1ad09a4799e91644156ba4b4a217c01d33..33ad557bcf3b1c0962d9ca6d12cbf99dca2549fc 100644 (file)
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <stdbool.h>
+#ifdef HAVE_STDBOOL_H
+# include <stdbool.h>
+#else
+# include "compat/stdbool.h"
+#endif
 #ifdef HAVE_STRING_H
 # include <string.h>
 #endif /* HAVE_STRING_H */