aboutsummaryrefslogtreecommitdiff
path: root/libps/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'libps/common.h')
-rw-r--r--libps/common.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libps/common.h b/libps/common.h
index 67d89bfd..6c44641e 100644
--- a/libps/common.h
+++ b/libps/common.h
@@ -1,6 +1,6 @@
/* Handy common functions for things in libps.
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1999 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -18,6 +18,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include <sys/mman.h>
+
#define ABS(x) ((x) < 0 ? -(x) : (x))
#define MAX(x, y) ((x) < (y) ? (y) : (x))
#define MIN(x, y) ((x) < (y) ? (x) : (y))
@@ -32,7 +34,7 @@
((type *)realloc((void *)(old),(unsigned)(sizeof(type)*(len))))
#define FREE(x) (void)free((void *)x)
-#define VMFREE(x, len) vm_deallocate(mach_task_self(), (vm_address_t)x, len)
+#define VMFREE(x, len) munmap((caddr_t)x, len)
#ifndef FALSE
#define FALSE 0