Date: Fri, 18 Oct 2002 13:52:53 +0400 (MSD) From: Maxim Maximov <mcsi@agava.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/44205: fix build of devel/commoncpp Message-ID: <200210180952.g9I9qrGY055398@ultra.domain>
next in thread | raw e-mail | index | archive | help
>Number: 44205 >Category: ports >Synopsis: fix build of devel/commoncpp >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: Fri Oct 18 03:00:10 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Maxim Maximov >Release: FreeBSD 4.7-RC i386 >Organization: >Environment: System: FreeBSD ultra.domain 4.7-RC FreeBSD 4.7-RC #9: Fri Oct 4 12:38:44 MSD 2002 mcsi@ultra.domain:/usr/obj/usr/src/sys/ULTRA i386 >Description: Fix build of devel/commoncpp port. The build have been broken due to POSIX visibility issues on 4-STABLE. I made 2 patches and cannot decide which is better. The first one just undef's HAVE_PTHREAD_DELAY, so we don't need nanosleep() anymore. The second defines a prototype for nanosleep() just as it is in <time.h>. Both are hacks, anyway.. >How-To-Repeat: >Fix: --- posix/friends.cpp.orig Fri Oct 18 13:37:22 2002 +++ posix/friends.cpp Fri Oct 18 13:37:34 2002 @@ -49,6 +49,8 @@ #include <sys/ioctl.h> #endif +#undef HAVE_PTHREAD_DELAY + #ifndef _PATH_TTY #define _PATH_TTY "/dev/tty" #endif --- posix/friends.cpp.orig Fri Oct 18 13:37:22 2002 +++ posix/friends.cpp Fri Oct 18 13:52:18 2002 @@ -49,6 +49,10 @@ #include <sys/ioctl.h> #endif +#ifdef HAVE_PTHREAD_NANOSLEEP +int nanosleep __P((const struct timespec *, struct timespec *)); +#endif + #ifndef _PATH_TTY #define _PATH_TTY "/dev/tty" #endif >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?200210180952.g9I9qrGY055398>