diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-09-24 04:56:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:49 -0500 |
commit | d98b913aa9a0dd40a9373d65882f1cb742d033af (patch) | |
tree | 6746c6fc2e9418d8a81a90f176bf691093d1ad81 /source4/lib/tdb/config.m4 | |
parent | 5860aef9cd53da572bef1b86a62a3a5e86da84b0 (diff) | |
download | samba-d98b913aa9a0dd40a9373d65882f1cb742d033af.tar.gz samba-d98b913aa9a0dd40a9373d65882f1cb742d033af.tar.bz2 samba-d98b913aa9a0dd40a9373d65882f1cb742d033af.zip |
r10466: work around missing pread/pwrite declaration on openbsd
(This used to be commit e615f36733966f9992670e3650fbe9b20d7d218c)
Diffstat (limited to 'source4/lib/tdb/config.m4')
-rw-r--r-- | source4/lib/tdb/config.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/tdb/config.m4 b/source4/lib/tdb/config.m4 index 2ebd29993d..31c33552ea 100644 --- a/source4/lib/tdb/config.m4 +++ b/source4/lib/tdb/config.m4 @@ -1,6 +1,9 @@ AC_CHECK_FUNCS(mmap pread pwrite) AC_CHECK_HEADERS(getopt.h) +AC_HAVE_DECL(pread, [#include <unistd.h>]) +AC_HAVE_DECL(pwrite, [#include <unistd.h>]) + if test x"$experimental" = x"yes"; then SMB_LIBRARY_ENABLE(libtdb,YES) fi |