...lib/tevent/tevent.h #include's <stdbool.h> unconditionally. It should only do so if HAVE_STDBOOL_H is #define'd. Patch: diff -u ./lib/tevent/tevent.h.orig ./lib/tevent/tevent.h --- ./lib/tevent/tevent.h.orig 2010-05-17 06:51:23.000000000 -0500 +++ ./lib/tevent/tevent.h 2010-05-26 09:59:24.000000000 -0500 @@ -31,7 +31,9 @@ #include <stdint.h> #include <talloc.h> #include <sys/time.h> +#ifdef HAVE_STDBOOL_H #include <stdbool.h> +#endif struct tevent_context; struct tevent_ops; Bye, Jojo
same story in ...lib/util/tevent_ntstatus.h. Patch: diff -u ./lib/util/tevent_ntstatus.h.orig ./lib/util/tevent_ntstatus.h --- ./lib/util/tevent_ntstatus.h.orig 2010-05-17 06:51:23.000000000 -0500 +++ ./lib/util/tevent_ntstatus.h 2010-05-26 10:00:06.000000000 -0500 @@ -21,7 +21,9 @@ #define _TEVENT_NTSTATUS_H #include <stdint.h> +#ifdef HAVE_STDBOOL_H #include <stdbool.h> +#endif #include "../libcli/util/ntstatus.h" #include "../tevent/tevent.h" Bye, Jojo
libreplace should provide stdint.h and stdbool.h if the system doesn't have them.
(In reply to comment #2) > libreplace should provide stdint.h and stdbool.h if the system doesn't have > them. 'Should' seems to be the right word. Without that patch I got a compiler error due to stdbool.h not found. Bye, Jojo
It seems that indeed the stdbool.h detection of configure does work correcly, as an attempt to reproduce the compiler error failed, so I must have done something wrong earlier, possibly I did two 'configure' runs without a 'make clean' in between (See also bug 7477.). Guess we can close this bug report, looks like an EBKAC (Error Between Keyboard And Chair) after all... Bye, Jojo