nanogui: Missing sys/io.h when compiling microwindows for MIPS


Previous by date: 26 Apr 2002 12:50:48 -0000 Re: Arrangement of memory in a PixMap, Alex Holden
Next by date: 26 Apr 2002 12:50:48 -0000 Re: Arrangement of memory in a PixMap, Pierre Tardy
Previous in thread:
Next in thread:

Subject: Missing sys/io.h when compiling microwindows for MIPS
From: "Richter, Thomas" ####@####.####
Date: 26 Apr 2002 12:50:48 -0000
Message-Id: <CEEE372345CE51438B0EC15F09ADE27108D0AE@dus04a.tsb-eu.com>

Hi,

maybe someone can use this patch. When trying to compile microwindows-0.89pre8 for MIPS I got the following error:

scr_fb.c:22: sys/io.h: No such file or directory

Here's my solution:

diff -crN microwindows-0.89pre8-org/src/drivers/Makefile microwindows-0.89pre8/src/drivers/Makefile
*** microwindows-0.89pre8-org/src/drivers/Makefile	Thu Jun 21 08:32:40 2001
--- microwindows-0.89pre8/src/drivers/Makefile	Fri Apr 26 11:45:02 2002
***************
*** 86,91 ****
--- 86,96 ----
  CFLAGS += -DARCH_LINUX_POWERPPC=1
  endif
  
+ # Added define to avoid compiler error for MIPS
+ ifeq ($(ARCH), LINUX-MIPS)
+ CFLAGS += -DARCH_LINUX_MIPS=1
+ endif
+ 
  endif # FRAMEBUFER
  
  ifeq ($(VTSWITCH), Y) 

diff -crN microwindows-0.89pre8-org/src/drivers/scr_fb.c microwindows-0.89pre8/src/drivers/scr_fb.c
*** microwindows-0.89pre8-org/src/drivers/scr_fb.c	Mon Sep 17 00:21:42 2001
--- microwindows-0.89pre8/src/drivers/scr_fb.c	Fri Apr 26 11:48:26 2002
***************
*** 17,27 ****
  #include <stdarg.h>
  #include <stdio.h>
  #include <stdlib.h>
! #ifndef ARCH_LINUX_POWERPPC
  #ifdef __GLIBC__
  #include <sys/io.h>
  #else
  #include <asm/io.h>
  #endif
  #endif
  #include <sys/ioctl.h>
--- 17,29 ----
  #include <stdarg.h>
  #include <stdio.h>
  #include <stdlib.h>
! #ifndef ARCH_LINUX_POWERPPC 
! #ifndef ARCH_LINUX_MIPS
  #ifdef __GLIBC__
  #include <sys/io.h>
  #else
  #include <asm/io.h>
+ #endif
  #endif
  #endif
  #include <sys/ioctl.h> 

Thomas


Previous by date: 26 Apr 2002 12:50:48 -0000 Re: Arrangement of memory in a PixMap, Alex Holden
Next by date: 26 Apr 2002 12:50:48 -0000 Re: Arrangement of memory in a PixMap, Pierre Tardy
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.