]> git.tuebingen.mpg.de Git - adu.git/commit
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)
commit76c1de74e9dbdeef52629632de91a50ed6e20dbe
treeea99f7c167496d7fdbea20f353cb998020d62f44
parentbd0166ae6242deafc9b3436199965420517033b5
Make it compile on FreeBSD and NetBSD.

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.
Makefile
gcc-compat.h