Commit a3e174ea by Alexandre Oliva Committed by Alexandre Oliva

configure.in: Check types ssize_t and in_addr_t.

* configure.in: Check types ssize_t and in_addr_t.
* acconfig.h: Undefine them.
* configure, include/config.h.in: Rebuilt.

From-SVN: r28793
parent e07eb72a
1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
* configure.in: Check types ssize_t and in_addr_t.
* acconfig.h: Undefine them.
* configure, include/config.h.in: Rebuilt.
* java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
function that detects the signature of getpwuid_r.
(init_properties): Use it.
......
......@@ -55,6 +55,12 @@
/* Define if you have the `localtime_r' function. */
#undef HAVE_LOCALTIME_R
/* Define to `int' if `ssize_t' is not defined. */
#undef ssize_t
/* Define to `struct in_addr' if `in_addr_t' is not defined. */
#undef in_addr_t
/* Define if inet6 structures are defined in netinet/in.h. */
#undef HAVE_INET6
......
......@@ -546,6 +546,9 @@ dnl We avoid AC_HEADER_DIRENT since we really only care about dirent.h
dnl for now. If you change this, you also must update natFile.cc.
AC_CHECK_HEADERS(dirent.h)
AC_CHECK_TYPE([ssize_t], [int])
AC_CHECK_TYPE([in_addr_t], [struct in_addr])
AC_MSG_CHECKING([whether struct sockaddr_in6 is in netinet/in.h])
AC_TRY_COMPILE([#include <netinet/in.h>], [struct sockaddr_in6 addr6;],
[AC_DEFINE(HAVE_INET6)
......
......@@ -22,6 +22,9 @@
*/
#undef STACK_DIRECTION
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Define this if you want runtime debugging enabled. */
#undef DEBUG
......@@ -67,6 +70,12 @@
/* Define if you have the `localtime_r' function. */
#undef HAVE_LOCALTIME_R
/* Define to `int' if `ssize_t' is not defined. */
#undef ssize_t
/* Define to `struct in_addr' if `in_addr_t' is not defined. */
#undef in_addr_t
/* Define if inet6 structures are defined in netinet/in.h. */
#undef HAVE_INET6
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment