[RFC] issues with the modules system

Anthony Liguori aliguor at us.ibm.com
Thu Apr 17 18:14:29 GMT 2003

Perhaps you mean bool which is part of C99 (it's not bool_t for C++ 
compatibility).  You need to include the <stdbool.h> header to access it. 
autoconf has built in functions to handle systems that don't support 
stdbool.h (you need to add something to the includes.h probably to enable 
a C99 compliant bool).  From the autoconf manual 

    If `stdbool.h' exists and is conformant to C99, define HAVE_STDBOOL_H 
to 1; if the type _Bool is defined, define HAVE__BOOL to 1. To fulfill the 
C99 requirements, your `system.h' should contain the following code:

# include <stdbool.h>
# if ! HAVE__BOOL
# ifdef __cplusplus
typedef bool _Bool;
# else
typedef unsigned char _Bool;
# endif
# endif
# define bool _Bool
# define false 0
# define true 1
# define __bool_true_false_are_defined 1

Anthony Liguori
Linux/Active Directory Interoperability
Linux Technology Center (LTC) - IBM Austin
E-mail: aliguor at us.ibm.com
Phone: (512) 838-1208
Tie Line: 678-1208

More information about the samba-technical mailing list