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:
parent
c72afc39f0
commit
60a455dd44
@ -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;
|
||||
|
||||
|
@ -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>])
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user