summaryrefslogtreecommitdiff
path: root/m4/sudo.m4
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@courtesan.com>2013-11-17 14:16:13 -0700
committerTodd C. Miller <Todd.Miller@courtesan.com>2013-11-17 14:16:13 -0700
commit237eaaa11341b1602204cbec463154b3a56d50b6 (patch)
treeb64119f8f0392192c9859565693a6b87c3f3773a /m4/sudo.m4
parent39e417bbecdea152fac7ff7368625e32d7fdfac2 (diff)
downloadsudo-237eaaa11341b1602204cbec463154b3a56d50b6.tar.gz
Fixes for building under Tru64; from Daniel Richard G.
Bug #624
Diffstat (limited to 'm4/sudo.m4')
-rw-r--r--m4/sudo.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/m4/sudo.m4 b/m4/sudo.m4
index 652fac640..234b4ec80 100644
--- a/m4/sudo.m4
+++ b/m4/sudo.m4
@@ -276,6 +276,18 @@ AC_DEFUN([SUDO_SOCK_SA_LEN], [
)
dnl
+dnl check for sin_len field in struct sockaddr_in
+dnl
+AC_DEFUN([SUDO_SOCK_SIN_LEN], [
+ AC_CHECK_MEMBER([struct sockaddr_in.sin_len],
+ [AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN_SIN_LEN, 1, [Define if your struct sockaddr_in has a sin_len field.])],
+ [], [
+# include <sys/types.h>
+# include <sys/socket.h>]
+ )]
+)
+
+dnl
dnl check for max length of uid_t in string representation.
dnl we can't really trust UID_MAX or MAXUID since they may exist
dnl only for backwards compatibility.