summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libshouldbeinlibc/ChangeLog5
-rw-r--r--libshouldbeinlibc/idvec-auth.c8
-rw-r--r--libshouldbeinlibc/portinfo.h1
-rw-r--r--libshouldbeinlibc/portxlate.c1
4 files changed, 9 insertions, 6 deletions
diff --git a/libshouldbeinlibc/ChangeLog b/libshouldbeinlibc/ChangeLog
index eee2ec95..385a0fea 100644
--- a/libshouldbeinlibc/ChangeLog
+++ b/libshouldbeinlibc/ChangeLog
@@ -3,8 +3,9 @@
* ugids-argp.c (parse_opt): Clarify if-then-else structure by
adding more braces.
- * portinfo.c (print_port_info): Cast first arg of munmap
- correctly.
+ * portinfo.h: Include <sys/types.h>.
+ * portxlate.c: Likewise.
+ * portinfo.c: (print_port_info): Cast first arg of munmap correctly.
(print_task_ports_info): Likewise.
* xportinfo.c (print_xlated_task_ports_info): Likewise.
* idvec-auth.c (idvec_merge_auth): Likewise.
diff --git a/libshouldbeinlibc/idvec-auth.c b/libshouldbeinlibc/idvec-auth.c
index b17233c8..22f2d559 100644
--- a/libshouldbeinlibc/idvec-auth.c
+++ b/libshouldbeinlibc/idvec-auth.c
@@ -67,13 +67,13 @@ idvec_merge_auth (struct idvec *eff_uids, struct idvec *avail_uids,
/* Deallocate any out-of-line memory we got back. */
if (_eff_uids != eff_uid_buf)
- munmap (_eff_uids, num_eff_uids);
+ munmap ((caddr_t) _eff_uids, num_eff_uids);
if (_avail_uids != avail_uid_buf)
- munmap (_avail_uids, num_avail_uids);
+ munmap ((caddr_t) _avail_uids, num_avail_uids);
if (_eff_gids != eff_gid_buf)
- munmap (_eff_gids, num_eff_gids);
+ munmap ((caddr_t) _eff_gids, num_eff_gids);
if (_avail_gids != avail_gid_buf)
- munmap (_avail_gids, num_avail_gids);
+ munmap ((caddr_t) _avail_gids, num_avail_gids);
return err;
}
diff --git a/libshouldbeinlibc/portinfo.h b/libshouldbeinlibc/portinfo.h
index 09d1643a..cc8d0730 100644
--- a/libshouldbeinlibc/portinfo.h
+++ b/libshouldbeinlibc/portinfo.h
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <errno.h>
#include <mach.h>
+#include <sys/types.h>
#include <sys/mman.h>
#include <portxlate.h>
diff --git a/libshouldbeinlibc/portxlate.c b/libshouldbeinlibc/portxlate.c
index 86a36101..d574cb2f 100644
--- a/libshouldbeinlibc/portxlate.c
+++ b/libshouldbeinlibc/portxlate.c
@@ -19,6 +19,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <malloc.h>
+#include <sys/types.h>
#include <sys/mman.h>
#include "portxlate.h"