SOURCES: ncps-PAGE_SIZE.patch - use getpagesize()
arekm
arekm at pld-linux.org
Sat Nov 1 15:08:38 CET 2008
Author: arekm Date: Sat Nov 1 14:08:38 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- use getpagesize()
---- Files affected:
SOURCES:
ncps-PAGE_SIZE.patch (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/ncps-PAGE_SIZE.patch
diff -u SOURCES/ncps-PAGE_SIZE.patch:1.1 SOURCES/ncps-PAGE_SIZE.patch:1.2
--- SOURCES/ncps-PAGE_SIZE.patch:1.1 Fri Apr 2 19:37:39 2004
+++ SOURCES/ncps-PAGE_SIZE.patch Sat Nov 1 15:08:33 2008
@@ -1,10 +1,11 @@
---- ncps-0.55/src/base.h.orig 2004-04-02 17:32:46.000000000 +0000
-+++ ncps-0.55/src/base.h 2004-04-02 17:36:06.000000000 +0000
-@@ -14,6 +14,7 @@
- #include <sys/user.h>
- #include <sys/time.h>
- #include <pwd.h>
-+#include <asm/page.h>
- #include <asm/param.h>
- #include <term.h>
- #undef tab
+--- src/base.h~ 2008-11-01 15:05:55.135841990 +0100
++++ src/base.h 2008-11-01 15:07:06.214377297 +0100
+@@ -31,7 +30,7 @@
+
+ #define PT_SIZE 5
+ #define ESC_STRETCH 6
+-#define OUTBUF_SIZE (32*PAGE_SIZE*ESC_STRETCH + 8*PAGE_SIZE)
++#define OUTBUF_SIZE (32*PAGE_SIZE*ESC_STRETCH + 8*getpagesize())
+
+ /* thanx to Lajos Pajtek for this */
+ #define PAGEDIV ((kb_main_total) >> (page_shift-10))
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/ncps-PAGE_SIZE.patch?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list