A couple things for the start of beos compatibility.

This commit is contained in:
theoddone33
2004-03-10 23:39:51 +00:00
parent 88c88c9000
commit 020465a4e3
2 changed files with 9 additions and 3 deletions

View File

@@ -32,6 +32,10 @@ case "$target" in
CFLAGS="$CFLAGS -D__LINUX__" CFLAGS="$CFLAGS -D__LINUX__"
NFLAGS="$NFLAGS -D__LINUX__ -f elf -DELF" NFLAGS="$NFLAGS -D__LINUX__ -f elf -DELF"
;; ;;
*-*-beos*)
CFLAGS="$CFLAGS -D__LINUX__ -D__BEOS__"
NFLAGS="$NFLAGS -D__LINUX__ -D__BEOS__ -f elf -DELF"
;;
*-*-*openbsd*) *-*-*openbsd*)
CFLAGS="$CFLAGS -D__LINUX__ -D__FreeBSD__" CFLAGS="$CFLAGS -D__LINUX__ -D__FreeBSD__"
NFLAGS="$NFLAGS -D__LINUX__ -D__FreeBSD__ -D__OpenBSD__ -f aoutb" NFLAGS="$NFLAGS -D__LINUX__ -D__FreeBSD__ -D__OpenBSD__ -f aoutb"

View File

@@ -88,15 +88,17 @@
#ifdef __LINUX__ #ifdef __LINUX__
#include "SDL.h" #include "SDL.h"
#include <sys/mman.h>
#include <limits.h> #include <limits.h>
#ifndef __BEOS__
#include <sys/mman.h>
#include <glob.h> #include <glob.h>
#include <arpa/inet.h>
#endif
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/types.h> #include <sys/types.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h> #include <netdb.h>
#include <utime.h> #include <utime.h>
#include <zlib.h> #include <zlib.h>
@@ -106,7 +108,7 @@
#endif #endif
#ifdef __LINUX__ #ifdef __LINUX__
#ifndef __FreeBSD__ #if !defined(__FreeBSD__) && !defined(__BEOS__)
#include <asm/ioctls.h> #include <asm/ioctls.h>
#else #else
#include <sys/filio.h> #include <sys/filio.h>