Commit 8629b876 authored by Sam Hocevar's avatar Sam Hocevar

  * Fixed NetBSD (and probably OpenBSD) libdvdcss compilation.
parent 4c7a79dd
This diff is collapsed.
...@@ -408,18 +408,20 @@ AC_CHECK_HEADERS(sys/ioctl.h,[ ...@@ -408,18 +408,20 @@ AC_CHECK_HEADERS(sys/ioctl.h,[
dnl dnl
dnl Old FreeBSD: sys/cdio.h dnl Old FreeBSD: sys/cdio.h
dnl dnl
AC_EGREP_HEADER(dvd_struct,sys/dvdio.h,[ AC_EGREP_HEADER(dvd_struct,sys/cdio.h,[
AC_DEFINE(DVD_STRUCT_IN_SYS_DVDIO_H, 1, AC_DEFINE(DVD_STRUCT_IN_SYS_CDIO_H, 1,
Define if <sys/dvdio.h> defines dvd_struct.) Define if <sys/cdio.h> defines dvd_struct.)
BSD_DVD_STRUCT=1 AC_EGREP_HEADER(struct dvd_struct,sys/cdio.h,[
BSD_DVD_STRUCT=1],[LINUX_DVD_STRUCT=1])
]) ])
dnl dnl
dnl Newer FreeBSD: sys/dvdio.h dnl Newer FreeBSD: sys/dvdio.h
dnl dnl
AC_EGREP_HEADER(dvd_struct,sys/cdio.h,[ AC_EGREP_HEADER(dvd_struct,sys/dvdio.h,[
AC_DEFINE(DVD_STRUCT_IN_SYS_CDIO_H, 1, AC_DEFINE(DVD_STRUCT_IN_SYS_DVDIO_H, 1,
Define if <sys/cdio.h> defines dvd_struct.) Define if <sys/dvdio.h> defines dvd_struct.)
BSD_DVD_STRUCT=1 AC_EGREP_HEADER(struct dvd_struct,sys/dvdio.h,[
BSD_DVD_STRUCT=1],[LINUX_DVD_STRUCT=1])
]) ])
dnl dnl
dnl Linux: linux/cdrom.h dnl Linux: linux/cdrom.h
...@@ -467,7 +469,7 @@ AC_CHECK_HEADERS(sys/ioctl.h,[ ...@@ -467,7 +469,7 @@ AC_CHECK_HEADERS(sys/ioctl.h,[
else else
if test x$BSD_DVD_STRUCT = x1; then if test x$BSD_DVD_STRUCT = x1; then
AC_DEFINE(HAVE_BSD_DVD_STRUCT, 1, AC_DEFINE(HAVE_BSD_DVD_STRUCT, 1,
Define if BSD-like dvd_struct is defined.) Define if FreeBSD-like dvd_struct is defined.)
fi fi
fi fi
]) ])
......
...@@ -214,12 +214,12 @@ ...@@ -214,12 +214,12 @@
/* Define if your compiler groks C altivec extensions. */ /* Define if your compiler groks C altivec extensions. */
#undef HAVE_C_ALTIVEC #undef HAVE_C_ALTIVEC
/* Define if <sys/dvdio.h> defines dvd_struct. */
#undef DVD_STRUCT_IN_SYS_DVDIO_H
/* Define if <sys/cdio.h> defines dvd_struct. */ /* Define if <sys/cdio.h> defines dvd_struct. */
#undef DVD_STRUCT_IN_SYS_CDIO_H #undef DVD_STRUCT_IN_SYS_CDIO_H
/* Define if <sys/dvdio.h> defines dvd_struct. */
#undef DVD_STRUCT_IN_SYS_DVDIO_H
/* Define if <linux/cdrom.h> defines DVD_STRUCT. */ /* Define if <linux/cdrom.h> defines DVD_STRUCT. */
#undef DVD_STRUCT_IN_LINUX_CDROM_H #undef DVD_STRUCT_IN_LINUX_CDROM_H
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
/* Define if Linux-like dvd_struct is defined. */ /* Define if Linux-like dvd_struct is defined. */
#undef HAVE_LINUX_DVD_STRUCT #undef HAVE_LINUX_DVD_STRUCT
/* Define if BSD-like dvd_struct is defined. */ /* Define if FreeBSD-like dvd_struct is defined. */
#undef HAVE_BSD_DVD_STRUCT #undef HAVE_BSD_DVD_STRUCT
/* Define if <pth.h> defines pth_init */ /* Define if <pth.h> defines pth_init */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment