configure, missing include, macos X BSD
Brought to you by:
delius
working on Mac OS X 10.3, (powerpc-apple-darwin7.8.0), I was
getting "checking for correct connect prototype... configure: error: no
match found!"
in configure file, on line 2154, you should include this:
#include <sys/types.h>
if test "${PROTO}" = ""; then
cat > conftest.$ac_ext <<EOF
#line 2152 "configure"
#include "confdefs.h"
#include <sys/socket.h>
int connect($testproto);
int main() {
; return 0; }
EOF
===============
becomes
===============
if test "${PROTO}" = ""; then
cat > conftest.$ac_ext <<EOF
#line 2152 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int connect($testproto);
int main() {
; return 0; }
EOF
===============
no more error.
Logged In: YES
user_id=104286
Originator: NO
For 10.4 you also need to make an additional patch.
*** 2228,2234 ****
echo $ac_n "checking for correct poll prototype""... $ac_c" 1>&6
echo "configure:2230: checking for correct poll prototype" >&5
PROTO=
! for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout'
do
if test "${PROTO}" = ""; then
cat > conftest.$ac_ext <<EOF
--- 2229,2236 ----
echo $ac_n "checking for correct poll prototype""... $ac_c" 1>&6
echo "configure:2230: checking for correct poll prototype" >&5
PROTO=
! for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout' \ ! 'struct pollfd *ufds, unsigned int nfds, int timeout'
do
if test "${PROTO}" = ""; then
cat > conftest.$ac_ext <<EOF