1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

r10471: stratos doesn't have getpagesize(), so guess 8k on systems that don't

have it. Overestimating is harmless.
(This used to be commit ab953c8c72)
This commit is contained in:
Andrew Tridgell 2005-09-24 07:30:20 +00:00 committed by Gerald (Jerry) Carter
parent c72afc39f0
commit 60a455dd44
3 changed files with 6 additions and 2 deletions

View File

@ -65,6 +65,10 @@ ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset);
#define u32 unsigned
#endif
#ifndef HAVE_GETPAGESIZE
#define getpagesize() 0x2000
#endif
typedef u32 tdb_len_t;
typedef u32 tdb_off_t;

View File

@ -1,4 +1,4 @@
AC_CHECK_FUNCS(mmap pread pwrite)
AC_CHECK_FUNCS(mmap pread pwrite getpagesize)
AC_CHECK_HEADERS(getopt.h)
AC_HAVE_DECL(pread, [#include <unistd.h>])

View File

@ -319,7 +319,7 @@ static void usage(void)
if (pids[j] == pid) break;
}
if (j == num_procs) {
printf("unknown child %d exited!?\n", pid);
printf("unknown child %d exited!?\n", (int)pid);
exit(1);
}
if (WEXITSTATUS(status) != 0) {