]> git.tuebingen.mpg.de Git - adu.git/commitdiff
Make it compile on FreeBSD and NetBSD.
authorAndre Noll <maan@systemlinux.org>
Tue, 23 Dec 2008 16:26:52 +0000 (17:26 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 23 Dec 2008 16:26:52 +0000 (17:26 +0100)
off_t on BSD is 64 bit even on 32bit machines, so there are no
special tricks needed to get large file support. In fact, getconf
has no options for large file support and struct stat64 and lstat64()
do not exist on BSD systems. This caused the compilation to fail on
those systems.

Fix this problem by checking for BSD via uname -s in the Makefile. If
uname indicates we're on BSD, then do not use getconf and #define
stat64 and lstat64() to stat and lstat() respectively.


No differences found