Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 645296
Collapse All | Expand All

(-)file_not_specified_in_diff (-4 / +8 lines)
Line  Link Here
0
-- a/configure.ac
0
++ b/configure.ac
Lines 61-66 Link Here
61
dnl Check if getopt header is installed on this system
61
dnl Check if getopt header is installed on this system
62
AC_CHECK_HEADERS([getopt.h], [], [AC_SUBST([GETOPT_OBJECTS], ['adplugdb/getopt.$(OBJEXT)'])])
62
AC_CHECK_HEADERS([getopt.h], [], [AC_SUBST([GETOPT_OBJECTS], ['adplugdb/getopt.$(OBJEXT)'])])
63
63
64
dnl On some platforms glibc does not provide sys/io.h
65
dnl https://bugs.gentoo.org/645296
66
AC_CHECK_HEADERS([sys/io.h])
67
64
dnl Sanitize some compiler features, which may be broken...
68
dnl Sanitize some compiler features, which may be broken...
65
AC_C_CONST
69
AC_C_CONST
66
AC_C_INLINE
70
AC_C_INLINE
67
-- a/src/realopl.cpp
71
++ b/src/realopl.cpp
Lines 41-47 Link Here
41
  # include <pc.h>
41
  # include <pc.h>
42
  # define INP  inportb
42
  # define INP  inportb
43
  # define OUTP outportb
43
  # define OUTP outportb
44
#elif defined(linux)
44
#elif defined(linux) && defined(HAVE_SYS_IO_H)
45
  # include <sys/io.h>
45
  # include <sys/io.h>
46
  # define INP inb
46
  # define INP inb
47
  # define OUTP(reg,val) outb(val,reg)
47
  # define OUTP(reg,val) outb(val,reg)
Lines 165-171 Link Here
165
  if (nowrite)
165
  if (nowrite)
166
    return;
166
    return;
167
167
168
#ifdef linux // see whether we can access the port
168
#if defined(linux) && defined(HAVE_SYS_IO_H)
169
  if (!gotperms) {
169
  if (!gotperms) {
170
    if ((ioperm(adlport, 2, 1) != 0) || (ioperm(adlport + 2, 2, 1) != 0)) {
170
    if ((ioperm(adlport, 2, 1) != 0) || (ioperm(adlport + 2, 2, 1) != 0)) {
171
      return;
171
      return;

Return to bug 645296