diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-28 21:54:33 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-28 21:54:33 +0000 |
commit | 60b37dbedcfe6e22fe9a61ee8432ae7bd2780483 (patch) | |
tree | 42c5d548da07f10a85c92da3191700e6f34e6829 /graphics/picturebook/files/patch-ptable.c | |
parent | security/arirang: Mark broken with Ruby 2.0 or newer (diff) |
Rename german/ and graphics/ patch-xy patches to reflect the files they modify.
Diffstat (limited to 'graphics/picturebook/files/patch-ptable.c')
-rw-r--r-- | graphics/picturebook/files/patch-ptable.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/picturebook/files/patch-ptable.c b/graphics/picturebook/files/patch-ptable.c new file mode 100644 index 000000000000..eab6008386ea --- /dev/null +++ b/graphics/picturebook/files/patch-ptable.c @@ -0,0 +1,15 @@ +--- ../picturebook.old/ptable.c Mon Dec 25 19:01:43 2000 ++++ ptable.c Mon Dec 25 19:03:21 2000 +@@ -38,8 +38,11 @@ + perror("virt_to_phys: open(/dev/mem)"); + exit(1); + } +- ++#ifdef LINUX + vmem = memalign(PAGE_SIZE, (npages+1)*PAGE_SIZE); ++#else __FreeBSD__ ++ vmem = malloc((npages+1)*PAGE_SIZE);/*Never mind!PAGESIZE aligned memalign is equivalent to valloc and see valloc(3).*/ ++#endif + if (!vmem) { + printf("failed to allocate ptable\n"); + exit(1); |