Added FreeBSD support to uisimulator. Patch by Keith Hubbard
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3811 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
92b1d85b48
commit
f6ed970b11
3 changed files with 16 additions and 3 deletions
|
@ -21,7 +21,7 @@
|
|||
#ifndef _SOUND_H
|
||||
#define _SOUND_H
|
||||
|
||||
#ifdef LINUX
|
||||
#ifdef HAVE_OSS
|
||||
|
||||
/* The "sound device type" */
|
||||
|
||||
|
|
|
@ -64,19 +64,27 @@ ifeq ($(UNAME),Linux)
|
|||
LDFLAGS = -lX11 -lm -lXt -lXmu -lnsl -ldl
|
||||
INCLUDES += -I/usr/X11R6/include
|
||||
LIBDIRS = -L/usr/X11R6/lib
|
||||
DEFINES += -DLINUX
|
||||
DEFINES += -DHAVE_OSS
|
||||
else
|
||||
ifeq ($(UNAME),CYGWIN)
|
||||
LDFLAGS = -lSM -lICE -lXt -lX11 -lXmu -lSM -lICE -lX11
|
||||
INCLUDES += -I/usr/X11R6/include
|
||||
LIBDIRS = -L/usr/X11R6/lib
|
||||
DEFINES += -DLINUX
|
||||
DEFINES += -DHAVE_OSS
|
||||
else
|
||||
ifeq ($(UNAME),FreeBSD)
|
||||
LIBS = -pthread
|
||||
LDFLAGS = -lX11 -lm -lXt -lXmu
|
||||
INCLUDES += -I/usr/X11R6/include
|
||||
LIBDIRS = -L/usr/X11R6/lib
|
||||
DEFINES += -DHAVE_OSS
|
||||
else
|
||||
LDFLAGS = -lX11 -lm -lXt -lXmu -lnsl -ldl
|
||||
DEFINES += -DBIG_ENDIAN
|
||||
LIBDIRS =
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) -W -Wall
|
||||
|
||||
|
|
|
@ -21,7 +21,12 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#ifdef __FreeBSD__
|
||||
#include <sys/param.h>
|
||||
#include <sys/mount.h>
|
||||
#else
|
||||
#include <sys/vfs.h>
|
||||
#endif
|
||||
#include <dirent.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue