Fixes for supergroups on Darwin 64bit
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Tue, 5 Jan 2010 00:14:06 +0000 (00:14 +0000)
committerDerrick Brashear <shadow|account-1000005@unknown>
Tue, 5 Jan 2010 00:24:13 +0000 (16:24 -0800)
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>

src/ptserver/map.c
src/ptserver/ptserver.c

index eb06194..c58c258 100644 (file)
 #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 */
index 803a0d2..f347ec5 100644 (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);