freebsd-ports/www/w3m/files/patch-w3mimg_fb_fb.h
MANTANI Nobutaka 81038e14ec Add w3m-img framebuffer support patch written by Yusuke Baba.
To display images on console, you need to install w3m-img and
run w3m on jfbterm (sysutils/jfbterm).

w3m-img for FreeBSD framebuffer (patch author's website, written in Japanese)
http://www.ac.auone-net.jp/~baba/w3m-img/index.html

PR:		ports/122673
Submitted by:	nrg milk <nrgmilk@gmail.com>
2008-04-22 16:01:39 +00:00

14 lines
365 B
C

--- w3mimg/fb/fb.h.orig 2003-07-08 00:48:17.000000000 +0900
+++ w3mimg/fb/fb.h 2007-11-23 02:43:22.000000000 +0900
@@ -1,7 +1,11 @@
/* $Id: fb.h,v 1.7 2003/07/07 15:48:17 ukai Exp $ */
#ifndef fb_header
#define fb_header
+#if defined(__linux__)
#include <linux/fb.h>
+#elif defined(__FreeBSD__)
+#include <sys/fbio.h>
+#endif
typedef struct {
int num;