summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-09-20 19:43:41 +0000
committerKevin Steves <stevesk@pobox.com>2001-09-20 19:43:41 +0000
commit50abba560c1a20ae2b88a0e4dbfc0d1f166588ea (patch)
tree767d45af8bd1bd1fe56d61f8a9b4776b50e2e4e7
parentc3422eb89094e4e56710b2fccfc7aff6294b1cab (diff)
downloadopenssh-git-50abba560c1a20ae2b88a0e4dbfc0d1f166588ea.tar.gz
- (stevesk) sun_len, SUN_LEN() configure stuff no longer required
-rw-r--r--ChangeLog3
-rw-r--r--acconfig.h5
-rw-r--r--configure.in18
-rw-r--r--defines.h9
4 files changed, 6 insertions, 29 deletions
diff --git a/ChangeLog b/ChangeLog
index 9d0c9623..883609ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
20010920
- (tim) [scard/Makefile.in] Don't strip the Java binary
+ - (stevesk) sun_len, SUN_LEN() configure stuff no longer required
20010919
- (bal) OpenBSD Sync
@@ -6533,4 +6534,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
-$Id: ChangeLog,v 1.1549 2001/09/20 18:39:35 tim Exp $
+$Id: ChangeLog,v 1.1550 2001/09/20 19:43:41 stevesk Exp $
diff --git a/acconfig.h b/acconfig.h
index 2b2be91a..0c141788 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -1,4 +1,4 @@
-/* $Id: acconfig.h,v 1.116 2001/09/18 04:01:12 djm Exp $ */
+/* $Id: acconfig.h,v 1.117 2001/09/20 19:43:41 stevesk Exp $ */
#ifndef _CONFIG_H
#define _CONFIG_H
@@ -32,9 +32,6 @@
/* Define if your password has a pw_change field */
#undef HAVE_PW_CHANGE_IN_PASSWD
-/* Define if your system's struct sockaddr_un has a sun_len member */
-#undef HAVE_SUN_LEN_IN_SOCKADDR_UN
-
/* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */
#undef BROKEN_INET_NTOA
diff --git a/configure.in b/configure.in
index 038569be..5fd7225c 100644
--- a/configure.in
+++ b/configure.in
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.312 2001/09/20 02:07:51 mouring Exp $
+# $Id: configure.in,v 1.313 2001/09/20 19:43:41 stevesk Exp $
AC_INIT(ssh.c)
@@ -1167,22 +1167,6 @@ OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmpx.h, HAVE_TIME_IN_UTMPX)
OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmpx.h, HAVE_TV_IN_UTMPX)
AC_STRUCT_ST_BLKSIZE
-AC_CACHE_CHECK([for sun_len field in struct sockaddr_un],
- ac_cv_have_sun_len_in_struct_sockaddr_un, [
- AC_TRY_COMPILE(
- [
-#include <sys/types.h>
-#include <sys/socket.h>
- ],
- [ struct sockaddr_un s; s.sun_len = 1; ],
- [ ac_cv_have_sun_len_in_struct_sockaddr_un="yes" ],
- [ ac_cv_have_sun_len_in_struct_sockaddr_un="no" ],
- )
-])
-if test "x$ac_cv_have_sun_len_in_struct_sockaddr_un" = "xyes" ; then
- AC_DEFINE(HAVE_SUN_LEN_IN_SOCKADDR_UN)
-fi
-
AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage],
ac_cv_have_ss_family_in_struct_ss, [
AC_TRY_COMPILE(
diff --git a/defines.h b/defines.h
index 233e0b83..52cd4112 100644
--- a/defines.h
+++ b/defines.h
@@ -1,7 +1,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
-/* $Id: defines.h,v 1.71 2001/09/15 11:31:54 djm Exp $ */
+/* $Id: defines.h,v 1.72 2001/09/20 19:43:41 stevesk Exp $ */
/* Necessary headers */
@@ -12,7 +12,7 @@
#include <netinet/in.h> /* For IPv6 macros */
#include <netinet/ip.h> /* For IPTOS macros */
#ifdef HAVE_SYS_UN_H
-# include <sys/un.h> /* For SUN_LEN */
+# include <sys/un.h> /* For sockaddr_un */
#endif
#ifdef HAVE_SYS_BITYPES_H
# include <sys/bitypes.h> /* For u_intXX_t */
@@ -405,11 +405,6 @@ struct winsize {
# define __attribute__(x)
#endif /* !defined(__GNUC__) || (__GNUC__ < 2) */
-#ifndef SUN_LEN
-#define SUN_LEN(su) \
- (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
-#endif /* SUN_LEN */
-
/* *-*-nto-qnx doesn't define this macro in the system headers */
#ifdef MISSING_HOWMANY
# define howmany(x,y) (((x)+((y)-1))/(y))