diff options
author | Roland McGrath <roland@gnu.org> | 1999-07-11 19:46:36 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-07-11 19:46:36 +0000 |
commit | fb629f730559242b5dae692a43515bb637394136 (patch) | |
tree | 9ec34d0051639d4cf9ed99537a730ad20b13cb6f | |
parent | f5d5190918ec5bf8b4edd4ef23386bdccb269fa2 (diff) |
1999-07-11 Roland McGrath <roland@baalperazim.frob.com>
* firmlink.c: Add #include <sys/mman.h>.
-rw-r--r-- | trans/firmlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/trans/firmlink.c b/trans/firmlink.c index 4c0c4533..d38f4dc8 100644 --- a/trans/firmlink.c +++ b/trans/firmlink.c @@ -219,7 +219,8 @@ trivfs_S_io_read (struct trivfs_protid *cred, if (start + amount > max) amount = max - start; if (amount > *data_len) - *data = mmap (0, amount, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); + *data = (vm_address_t) mmap (0, amount, PROT_READ|PROT_WRITE, + MAP_ANON, 0, 0); err = (*data == -1) ? errno : 0; if (!err && amount > 0) { |