Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/unix
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-05 15:06:40 +0400
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-05 15:06:40 +0400
commit82c23c58708acd1370a129f712207ce60e7e6199 (patch)
treebd32be77b4a034ced6b9b025806aa49f8be0ee14 /src/unix
parentd0517805d84f0fdd6c1311eb00a0d4ff257b4e47 (diff)
Assume this is irrelevant for now
Diffstat (limited to 'src/unix')
-rw-r--r--src/unix/map.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/unix/map.c b/src/unix/map.c
index 9bc6178ed..1613152a0 100644
--- a/src/unix/map.c
+++ b/src/unix/map.c
@@ -1,11 +1,14 @@
#include "map.h"
+#ifndef __amigaos4__
#include <sys/mman.h>
+#endif
#include <errno.h>
int git__mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offset)
{
+#ifndef __amigaos4__
int mprot = 0;
int mflag = 0;
@@ -42,19 +45,20 @@ int git__mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t o
if (!out->data || out->data == MAP_FAILED)
return git__throw(GIT_EOSERR, "Failed to mmap. Could not write data");
out->len = len;
-
+#endif
return GIT_SUCCESS;
}
int git__munmap(git_map *map)
{
+#ifndef __amigaos4__
assert(map != NULL);
if (!map)
return git__throw(GIT_ERROR, "Failed to munmap. Map does not exist");
munmap(map->data, map->len);
-
+#endif
return GIT_SUCCESS;
}