mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 15:41:59 +00:00
patches from the FreeBSD ports that are still applicable
This commit is contained in:
parent
c788a2ea57
commit
570a72497f
2 changed files with 7 additions and 1 deletions
|
@ -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@
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue