aboutsummaryrefslogtreecommitdiff
path: root/graphics/picturebook/files/patch-af
diff options
context:
space:
mode:
authorTakanori Watanabe <takawata@FreeBSD.org>2001-04-24 17:13:27 +0000
committerTakanori Watanabe <takawata@FreeBSD.org>2001-04-24 17:13:27 +0000
commite434ab45529b7a1e99f51b993fd8d99e4090b0bf (patch)
tree0c6e6309e36210d9635f5be4a417527599199635 /graphics/picturebook/files/patch-af
parent4a4c628fb2f71b99c89a34d53aa320dac4adf4ee (diff)
Notes
Diffstat (limited to 'graphics/picturebook/files/patch-af')
-rw-r--r--graphics/picturebook/files/patch-af15
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/picturebook/files/patch-af b/graphics/picturebook/files/patch-af
new file mode 100644
index 000000000000..eab6008386ea
--- /dev/null
+++ b/graphics/picturebook/files/patch-af
@@ -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);