Ignore:
Timestamp:
Jan 18, 2007, 1:32:31 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Check recv() return type: int on Linux, ssize_t on OS X.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/configure.ac

    r1695 r1696  
    3333 [AC_MSG_RESULT(int read(... unsigned int);)])
    3434
     35AC_MSG_CHECKING(for recv() return value)
     36ac_v_recv_t="int"
     37AC_TRY_COMPILE([#include <sys/types.h>
     38  #include <sys/socket.h>],
     39 [ssize_t recv(int s, void *buf, size_t len, int flags);],
     40 [ac_v_recv_t="ssize_t"])
     41AC_MSG_RESULT($ac_v_recv_t)
     42AC_DEFINE_UNQUOTED(RECV_T, $ac_v_recv_t, [Define to the recv() return type])
     43
    3544AC_CHECK_FUNCS(getopt_long,
    3645 [AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)],
Note: See TracChangeset for help on using the changeset viewer.