Ignore:
Timestamp:
Jan 13, 2010, 1:11:14 AM (11 years ago)
Author:
Sam Hocevar
Message:

On HP-UX, connect(), bind() etc. do not use the struct sockaddr type but
use a void pointer instead. Check for that at configure time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/configure.ac

    r4258 r4262  
    5959  [#include <sys/types.h>
    6060   #include <sys/socket.h>])
     61
     62AC_MSG_CHECKING(for connect() second argument)
     63AC_TRY_COMPILE([#include <sys/types.h>
     64                #include <sys/socket.h>],
     65 [#if defined HAVE_SOCKLEN_T
     66  int connect(int, const struct sockaddr *, socklen_t);
     67  #else
     68  int connect(int, const struct sockaddr *, int);
     69  #endif],
     70 [AC_MSG_RESULT(const struct sockaddr *)
     71  AC_DEFINE(CONNECT_USES_STRUCT_SOCKADDR, 1, [Define to 1 if connect() uses struct sockaddr.])],
     72 [AC_MSG_RESULT(const void *)])
    6173
    6274AC_MSG_CHECKING(for read() prototype)
Note: See TracChangeset for help on using the changeset viewer.