On Thu, 7 Dec 2000, David Whedon wrote: > Maybe you aren't interested in these since most people won't be building apt > on > FreeBSD, but the required changes are minor. > Building apt on FreeBSD, two little problems broke the build (patches > that fix it are at the end of this message):
> Compiling contrib/mmap.cc to ../obj/apt-pkg/mmap.o > In file included from contrib/mmap.cc:32: > /usr/include/sys/mman.h:134: type specifier omitted for parameter > /usr/include/sys/mman.h:140: type specifier omitted for parameter > contrib/mmap.cc: In method `bool MMap::Map(FileFd &)': > /usr/include/sys/mman.h:140: too many arguments to function `void * mmap(void > *, unsigned int, int, int, int)' > contrib/mmap.cc:83: at this point in file > gmake: *** [../obj/apt-pkg/mmap.o] Error 1 This is a problem with FreeBSD. Please see http://www.opengroup.org/onlinepubs/007908799/xsh/mmap.html And notice that the SuS does not require types.h to include mman.h. Please bug them to be conforming. > Here the problem is that FreeBSD just 'defines' _POSIX_THREADS, they don't > define it as anything: > bash-2.03$ grep _POSIX_THREADS /usr/include/sys/unistd.h > #define _POSIX_THREADS I'm not super sure this is kosher either.. I don't have a posix spec here though.. It does matter sadly because if the spec says thas _POSIX_THREADS=0 is valid.. Hrm Jason

