patches from the FreeBSD ports that are still applicable

This commit is contained in:
Bill Currie 2003-01-31 18:19:55 +00:00
parent c788a2ea57
commit 570a72497f
2 changed files with 7 additions and 1 deletions

View file

@ -1,6 +1,6 @@
AUTOMAKE_OPTIONS= foreign AUTOMAKE_OPTIONS= foreign
AM_CFLAGS= @PREFER_PIC@ @VORBIS_CFLAGS@ AM_CFLAGS= @PREFER_PIC@ @VORBIS_CFLAGS@ @OGG_CFLAGS@
INCLUDES= -I$(top_srcdir)/include INCLUDES= -I$(top_srcdir)/include
plugin_version= 1:0:0 plugin_version= 1:0:0
plugin_ldflags= @plugin_ldflags@ plugin_ldflags= @plugin_ldflags@

View file

@ -493,4 +493,10 @@ outb (unsigned char val, unsigned short port)
{ {
asm ("outb %b0, %w1" : :"a"(val), "d"(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 #endif