Hi all,
Another issue is that log2 is a C99 function; it’s not available on the
FreeBSD machine I normally use. I can build with the following patch:
diff -r 5ec4534daf16 src/device-tty.c
--- a/src/device-tty.c Thu Apr 14 08:40:18 2011 -0400
+++ b/src/device-tty.c Sun Apr 17 10:55:27 2011 +0100
@@ -197,7 +197,8 @@
return Fcons (make_int (CONSOLE_TTY_DATA (con)->width),
make_int (CONSOLE_TTY_DATA (con)->height));
case DM_num_bit_planes:
- return make_int (log2 (CONSOLE_TTY_DATA (con)->colors));
+ return make_int ((EMACS_INT) (log (CONSOLE_TTY_DATA (con)->colors)
+ / log (2)));
case DM_num_color_cells:
return make_int (CONSOLE_TTY_DATA (con)->colors);
default: /* No such device metric property for TTY devices */
Best,
Aidan
Ar an séú lá déag de mí Aibréan, scríobh Vin Shelton:
[...]
--
“Apart from the nine-banded armadillo, man is the only natural host of
Mycobacterium leprae, although it can be grown in the footpads of mice.”
-- Kumar & Clark, Clinical Medicine, summarising improbable leprosy research
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches