On Tue, 28 Dec 1999, Soren Schmidt wrote:
> It seems Kenneth Wayne Culver wrote:
> > I can't get the nist port to compile:
> > c++ -g -O2 -Wall -DDO_NIST -DPACKAGE=\"ac3dec\" -DVERSION=\"0.5.5\"
> > -I../../inc -c bitstream.c -o bitstream.o
> > In file included from decode.h:24,
> > from bitstream.c:27:
> > ../../inc/athread.hh: In function `int athr_setschedparam(pthread *, int,
> > sched_param *)':
> > ../../inc/athread.hh:150: implicit declaration of function `int
> > pthread_setschedparam(...)'
> > ../../inc/athread.hh: In function `int athr_getschedparam(pthread *, int
> > *, sched_param *)':
> > ../../inc/athread.hh:151: implicit declaration of function `int
> > pthread_getschedparam(...)'
> > bitstream.c: In function `uint_32 bitstream_get(bitstream_t *, long
> > unsigned int)':
>
> Uhm, seems like we need to define _POSIX_THREAD_PRIORITY_SCHEDULING now
> to get the prototypes for these, add:
>
> #ifdef __FreeBSD__
> #define _POSIX_THREAD_PRIORITY_SCHEDULING
> #endif
>
Hey, these _POSIX_THREAD_XXXX definitions used to be in pthread.h.
It looks like they were removed from version 1.16 of pthread.h:
revision 1.16
date: 1999/12/16 21:53:38; author: jasone; state: Exp; lines: +1 -18
Move POSIX feature constants from pthread.h to unistd.h, as required by
1003.1c-1995.
Undefine _POSIX_THREAD_SAFE_FUNCTIONS, since we do not implement all of the
necessary interfaces. At least getgrgid_r(), getrnam_r(), getpwuid_r(),
getpwnam_r(), getc_unlocked(), getchar_unlocked(), putc_unlocked(),
and putchar_unlocked() are missing. Due to a likely typo in 1003.1c-1995,
we are not technically allowed to define _POSIX_THREADS without defining
_POSIX_THREAD_SAFE_FUNCTIONS, but either way we're non-compliant, so I'm
leaving _POSIX_THREADS defined.
They're not in unistd.h either. This is a FreeBSD bug.
Dan Eischen
[EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message