Commit fbe632e2 fbe632e2847e704d8bd79b39d0b4ea110a6b2cf8 by Sergey Poznyakoff

Added check for socklen_t

1 parent ad4546d7
...@@ -163,9 +163,9 @@ AC_HEADER_STDC ...@@ -163,9 +163,9 @@ AC_HEADER_STDC
163 AC_HEADER_DIRENT 163 AC_HEADER_DIRENT
164 AM_C_PROTOTYPES 164 AM_C_PROTOTYPES
165 AC_CHECK_HEADERS(argp.h errno.h fcntl.h inttypes.h libgen.h limits.h malloc.h \ 165 AC_CHECK_HEADERS(argp.h errno.h fcntl.h inttypes.h libgen.h limits.h malloc.h \
166 paths.h shadow.h stdarg.h stdio.h stdlib.h string.h strings.h sys/file.h \ 166 paths.h shadow.h socket.h sys/socket.h stdarg.h stdio.h stdlib.h string.h \
167 sysexits.h syslog.h termios.h termio.h sgtty.h utmp.h utmpx.h unistd.h obstack.h \ 167 strings.h sys/file.h sysexits.h syslog.h termios.h termio.h sgtty.h utmp.h \
168 termcap.h) 168 utmpx.h unistd.h obstack.h termcap.h)
169 169
170 dnl Checks for typedefs, structures, and compiler characteristics. 170 dnl Checks for typedefs, structures, and compiler characteristics.
171 AC_C_CONST 171 AC_C_CONST
...@@ -174,12 +174,24 @@ AC_TYPE_MODE_T ...@@ -174,12 +174,24 @@ AC_TYPE_MODE_T
174 AC_TYPE_OFF_T 174 AC_TYPE_OFF_T
175 AC_TYPE_PID_T 175 AC_TYPE_PID_T
176 AC_TYPE_SIZE_T 176 AC_TYPE_SIZE_T
177 AC_CHECK_TYPE(ssize_t, int) 177 AC_CHECK_TYPE(ssize_t, , AC_DEFINE(ssize_t, int, [Define to int if <sys/types.h> does not define]))
178 AC_TYPE_SIGNAL 178 AC_TYPE_SIGNAL
179 AC_DECL_SYS_SIGLIST 179 AC_DECL_SYS_SIGLIST
180 AC_STRUCT_TIMEZONE 180 AC_STRUCT_TIMEZONE
181 AC_CHECK_TYPE(ino_t, unsigned long) 181 AC_CHECK_TYPE(ino_t, , AC_DEFINE(ino_t, unsigned long, [Define to unsigned long if <sys/types.h> does not define]))
182 AC_CHECK_TYPE(dev_t, unsigned long) 182 AC_CHECK_TYPE(dev_t, , AC_DEFINE(dev_t, unsigned long, [Define to unsigned long if <sys/types.h> does not define]))
183 AC_CHECK_TYPE(socklen_t, , AC_DEFINE(socklen_t, int, [Define to int if <sys/types.h> does not define]),
184 [
185 #if HAVE_SYS_TYPES_H
186 # include <sys/types.h>
187 #endif
188 #ifdef HAVE_SYS_SOCKET_H
189 # include <sys/socket.h>
190 #endif
191 #ifdef HAVE_SOCKET_H
192 # include <socket.h>
193 #endif
194 ])
183 195
184 AC_STRUCT_TM 196 AC_STRUCT_TM
185 AC_CHECK_MEMBERS([struct tm.tm_zone, struct tm.tm_gmtoff, struct tm.tm_isdst], 197 AC_CHECK_MEMBERS([struct tm.tm_zone, struct tm.tm_gmtoff, struct tm.tm_isdst],
......