Skip to content

Commit

Permalink
build fbcon routines even off linux #1883
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jul 19, 2021
1 parent e8707e5 commit 11787f1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/lib/linux.c
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
#include "linux.h"
#include "internal.h"

#ifdef __linux__
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <linux/kd.h>
#include <sys/ioctl.h>

int fbcon_wipe(sprixel* s, int ycell, int xcell){
(void)s;
(void)ycell;
Expand Down Expand Up @@ -101,6 +92,15 @@ int fbcon_draw(const struct ncpile *p, sprixel* s, FILE* out, int y, int x){
return 0;
}

#ifdef __linux__
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <linux/kd.h>
#include <sys/ioctl.h>

// each row is a contiguous set of bits, starting at the msb
static inline size_t
row_bytes(const struct console_font_op* cfo){
Expand Down

0 comments on commit 11787f1

Please sign in to comment.