summaryrefslogtreecommitdiffstats
path: root/sss_client
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-08-26 13:18:19 +0200
committerSimo Sorce <ssorce@redhat.com>2009-08-28 10:32:37 -0400
commit24ce67edf0e407c18310dacc972e0bd69d902522 (patch)
treedcad9f9a0f21971e750d439c7746cd6f135b74b7 /sss_client
parent3293ff85f7ec70bf2e67f2538c03d2dec3298935 (diff)
downloadsssd-24ce67edf0e407c18310dacc972e0bd69d902522.tar.gz
sssd-24ce67edf0e407c18310dacc972e0bd69d902522.tar.xz
sssd-24ce67edf0e407c18310dacc972e0bd69d902522.zip
add configure check for errno_t
Diffstat (limited to 'sss_client')
-rw-r--r--sss_client/configure.ac2
-rw-r--r--sss_client/sss_cli.h5
2 files changed, 7 insertions, 0 deletions
diff --git a/sss_client/configure.ac b/sss_client/configure.ac
index df1664143..01c717de5 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 f1ccba9f2..7e0d4dbdc 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