Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ CFLAGS="$CFLAGS"
AC_PROG_CC
ACX_DEPFLAG
AC_PROG_MAKE_SET
AC_PROG_INSTALL

# Extra (sp)lint flags for NetBSD
AC_CANONICAL_HOST
Expand Down Expand Up @@ -840,7 +841,6 @@ m4_warn([obsolete],
AC_CHECK_INCLUDES_DEFAULT
AC_PROG_EGREP

AC_HEADER_STDBOOL
#AC_HEADER_SYS_WAIT
#AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h])
# do the very minimum - we can always extend this
Expand Down
28 changes: 1 addition & 27 deletions ldns/common.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,33 +31,7 @@
#define LDNS_BUILD_CONFIG_USE_ED25519 @ldns_build_config_use_ed25519@
#define LDNS_BUILD_CONFIG_USE_ED448 @ldns_build_config_use_ed448@

/*
* HAVE_STDBOOL_H is not available when distributed as a library, but no build
* configuration variables may be used (like those above) because the header
* is sometimes only available when using special compiler flags to enable the
* c99 environment. Because we cannot force the usage of this flag, we have to
* provide a default type. Below what is suggested by the autoconf manual.
*/
/*@ignore@*/
/* splint barfs on this construct */
#ifndef __bool_true_false_are_defined
# ifdef HAVE_STDBOOL_H
# include <stdbool.h>
# else
# ifndef HAVE__BOOL
# ifdef __cplusplus
typedef bool _Bool;
# else
# define _Bool signed char
# endif
# endif
# define bool _Bool
# define false 0
# define true 1
# define __bool_true_false_are_defined 1
# endif
#endif
/*@end@*/
#include <stdbool.h>

#if LDNS_BUILD_CONFIG_HAVE_ATTR_FORMAT
#define ATTR_FORMAT(archetype, string_index, first_to_check) \
Expand Down