From 570a72497f3ee6744795a4bac7f0314657d78818 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 31 Jan 2003 18:19:55 +0000 Subject: [PATCH] patches from the FreeBSD ports that are still applicable --- libs/audio/renderer/Makefile.am | 2 +- libs/video/targets/vid_svgalib.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/audio/renderer/Makefile.am b/libs/audio/renderer/Makefile.am index 4b5953c8b..49096a2e3 100644 --- a/libs/audio/renderer/Makefile.am +++ b/libs/audio/renderer/Makefile.am @@ -1,6 +1,6 @@ AUTOMAKE_OPTIONS= foreign -AM_CFLAGS= @PREFER_PIC@ @VORBIS_CFLAGS@ +AM_CFLAGS= @PREFER_PIC@ @VORBIS_CFLAGS@ @OGG_CFLAGS@ INCLUDES= -I$(top_srcdir)/include plugin_version= 1:0:0 plugin_ldflags= @plugin_ldflags@ diff --git a/libs/video/targets/vid_svgalib.c b/libs/video/targets/vid_svgalib.c index a3238fe5c..7ad921a3d 100644 --- a/libs/video/targets/vid_svgalib.c +++ b/libs/video/targets/vid_svgalib.c @@ -493,4 +493,10 @@ outb (unsigned char val, unsigned short port) { asm ("outb %b0, %w1" : :"a"(val), "d"(port)); } +#elif defined(__FreeBSD__) +static inline void +outb (unsigned char value, unsigned short port) +{ + __asm__ __volatile__ ("outb %b0,%w1"::"a" (value), "d" (port)); +} #endif