From 24ce67edf0e407c18310dacc972e0bd69d902522 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 26 Aug 2009 13:18:19 +0200 Subject: add configure check for errno_t --- server/configure.ac | 2 ++ server/util/util.h | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'server') diff --git a/server/configure.ac b/server/configure.ac index d42f07ec..071ad070 100644 --- a/server/configure.ac +++ b/server/configure.ac @@ -31,6 +31,8 @@ AM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes]) AC_CHECK_HEADERS(stdint.h dlfcn.h) AC_CONFIG_HEADER(config.h) +AC_CHECK_TYPES([errno_t], [], [], [[#include ]]) + m4_include([build_macros.m4]) BUILD_WITH_SHARED_BUILD_DIR diff --git a/server/util/util.h b/server/util/util.h index 87965292..f289f9c5 100644 --- a/server/util/util.h +++ b/server/util/util.h @@ -15,6 +15,11 @@ #include "tevent.h" #include "ldb.h" +#ifndef HAVE_ERRNO_T +#define HAVE_ERRNO_T +typedef int errno_t; +#endif + extern const char *debug_prg_name; extern int debug_level; extern int debug_timestamps; -- cgit