From 168bbfa73795a995c2579c9a2880d118f1a4588f Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Tue, 31 Dec 2019 05:41:47 +0000 Subject: [PATCH] rtld(1): Do booleans like C99 Reviewed by: kib, rlibby Differential Revision: https://reviews.freebsd.org/D22964 --- libexec/rtld-elf/rtld.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libexec/rtld-elf/rtld.h b/libexec/rtld-elf/rtld.h index fc9f1025581..c1996f04219 100644 --- a/libexec/rtld-elf/rtld.h +++ b/libexec/rtld-elf/rtld.h @@ -37,6 +37,7 @@ #include #include #include +#include #include #include @@ -46,11 +47,6 @@ #define NEW(type) ((type *) xmalloc(sizeof(type))) #define CNEW(type) ((type *) xcalloc(1, sizeof(type))) -/* We might as well do booleans like C++. */ -typedef unsigned char bool; -#define false 0 -#define true 1 - extern size_t tls_last_offset; extern size_t tls_last_size; extern size_t tls_static_space;