From b90a88e80310e5650e2abed4c151889d9c0bd316 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 6 Aug 2005 19:48:12 +0000 Subject: [PATCH] Add checks for functions used in os/access.c & os/connection.c: getdtablesize(), getifaddrs(), getpeereid(), getpeerucred() --- configure.ac | 9 +++++++++ include/dix-config.h.in | 12 ++++++++++++ 2 files changed, 21 insertions(+) diff --git a/configure.ac b/configure.ac index 6dc178d8b..072462ca4 100644 --- a/configure.ac +++ b/configure.ac @@ -71,6 +71,15 @@ AC_TYPE_PID_T AC_FUNC_VPRINTF AC_CHECK_FUNCS([geteuid getuid link memmove memset mkstemp strchr strrchr strtol getopt getopt_long vsnprintf walkcontext]) AC_FUNC_ALLOCA +# Old HAS_* names used in os/*.c +AC_CHECK_FUNC([getdtablesize], AC_DEFINE(HAS_GETDTABLESIZE,1, + [Define to 1 if you have the `getdtablesize' function.])) +AC_CHECK_FUNC([getifaddrs], AC_DEFINE(HAS_GETIFADDRS,1, + [Define to 1 if you have the `getifaddrs' function.])) +AC_CHECK_FUNC([getpeereid], AC_DEFINE(HAS_GETPEEREID,1, + [Define to 1 if you have the `getpeereid' function.])) +AC_CHECK_FUNC([getpeerucred], AC_DEFINE(HAS_GETPEERUCRED,1, + [Define to 1 if you have the `getpeerucred' function.])) AM_CONDITIONAL(NEED_VSNPRINTF, [test x$HAVE_VSNPRINTF = xno]) diff --git a/include/dix-config.h.in b/include/dix-config.h.in index 6a301894f..ec329887d 100644 --- a/include/dix-config.h.in +++ b/include/dix-config.h.in @@ -59,6 +59,18 @@ /* Support XDM-AUTH*-1 */ #undef HASXDMAUTH +/* Define to 1 if you have the `getdtablesize' function. */ +#undef HAS_GETDTABLESIZE + +/* Define to 1 if you have the `getifaddrs' function. */ +#undef HAS_GETIFADDRS + +/* Define to 1 if you have the `getpeereid' function. */ +#undef HAS_GETPEEREID + +/* Define to 1 if you have the `getpeerucred' function. */ +#undef HAS_GETPEERUCRED + /* Support SHM */ #undef HAS_SHM