Fixes for supergroups on Darwin 64bit

Some fixes needed to make supergroups build on 64bit Mac OS 10.5

Change-Id: I1aea100b138a8212010dd9f511377c993589977f
Reviewed-on: http://gerrit.openafs.org/1060
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Simon Wilkinson 2010-01-05 00:14:06 +00:00 committed by Derrick Brashear
parent e4eb19cdc0
commit daff400662
2 changed files with 3 additions and 6 deletions

View File

@ -35,12 +35,8 @@
#ifdef SUPERGROUPS
#include <errno.h>
#include <string.h>
#include "map.h"
#ifdef STDLIB_HAS_MALLOC_PROTOS
#include <stdlib.h>
#else
#include "malloc.h"
#endif
#include "map.h"
#undef PRINT_MAP_ERROR
/* #define MAP_DEBUG */

View File

@ -262,7 +262,8 @@ main(int argc, char **argv)
|| (sizeof(struct prentryg) != ENTRYSIZE)) {
fprintf(stderr,
"The structures for the database records are different"
" sizes\n" "struct prentry = %d\n" "struct prentryg = %d\n"
" sizes\n" "struct prentry = %" AFS_SIZET_FMT "\n"
"struct prentryg = %" AFS_SIZET_FMT "\n"
"ENTRYSIZE = %d\n", sizeof(struct prentry),
sizeof(struct prentryg), ENTRYSIZE);
PT_EXIT(1);