Date: Thu, 30 May 2002 21:40:48 -0700 (PDT) From: Eric Anholt <eanholt@gladstone.uoregon.edu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/38759: fix bochs compiling on -current Message-ID: <200205310440.g4V4emmY025876@anholt.dyndns.org>
next in thread | raw e-mail | index | archive | help
>Number: 38759 >Category: ports >Synopsis: fix bochs compiling on -current >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 30 21:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Eric Anholt >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD anholt.dyndns.org 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Thu May 23 12:38:28 PDT 2002 anholt@anholt.dyndns.org:/usr/src/current/sys/i386/compile/MYKERNEL i386 >Description: The test for socklen_t relied on promiscuous includes. Patch attached. ports/35328 should be added, too. >How-To-Repeat: >Fix: --- patch-configure.in begins here --- --- configure.in.orig Wed Mar 27 17:20:32 2002 +++ configure.in Thu May 30 21:32:01 2002 @@ -101,8 +101,16 @@ AC_CHECK_FUNCS(usleep, AC_DEFINE(BX_HAVE_USLEEP)) AC_CHECK_FUNCS(nanosleep, AC_DEFINE(BX_HAVE_NANOSLEEP)) AC_CHECK_FUNCS(abort, AC_DEFINE(BX_HAVE_ABORT)) -AC_CHECK_TYPE(socklen_t, AC_DEFINE(BX_HAVE_SOCKLEN_T), , [#include <sys/socket.h>]) - +AC_MSG_CHECKING(for socklen_t) +AC_TRY_COMPILE([#include <sys/types.h> + #include <sys/socket.h>], + [socklen_t x], + [ + AC_DEFINE(BX_HAVE_SOCKLEN_T) + AC_MSG_RESULT(yes) + ], + AC_MSG_RESULT(no) + ) AC_MSG_CHECKING(for struct timeval) AC_TRY_COMPILE([#include <sys/time.h>], [struct timeval x;], --- patch-configure.in ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205310440.g4V4emmY025876>