summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/configure.ac2
-rw-r--r--server/util/util.h5
-rw-r--r--sss_client/configure.ac2
-rw-r--r--sss_client/sss_cli.h5
4 files changed, 14 insertions, 0 deletions
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 <errno.h>]])
+
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;
diff --git a/sss_client/configure.ac b/sss_client/configure.ac
index df166414..01c717de 100644
--- a/sss_client/configure.ac
+++ b/sss_client/configure.ac
@@ -13,6 +13,8 @@ AM_GNU_GETTEXT_VERSION([0.14])
AM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes])
+AC_CHECK_TYPES([errno_t], [], [], [[#include <errno.h>]])
+
m4_pattern_allow([AM_SILENT_RULES])
AM_SILENT_RULES
diff --git a/sss_client/sss_cli.h b/sss_client/sss_cli.h
index f1ccba9f..7e0d4dbd 100644
--- a/sss_client/sss_cli.h
+++ b/sss_client/sss_cli.h
@@ -15,6 +15,11 @@
#include <pwd.h>
#include <grp.h>
+#ifndef HAVE_ERRNO_T
+#define HAVE_ERRNO_T
+typedef int errno_t;
+#endif
+
#define SSS_NSS_PROTOCOL_VERSION 1
#define SSS_PAM_PROTOCOL_VERSION 2