Commit c8028570 authored by Diego Biurrun's avatar Diego Biurrun

dvd_region: #include ioctl.c instead of linking against the object file

On non-Linux platform dvd_region uses static functions from ioctl.c,
so just linking against the object file is not enough.
parent c8b91561
......@@ -39,7 +39,7 @@ test_csstest_SOURCES = test/csstest.c
test_csstest_LDADD = libdvdcss.la
test_csstest_CFLAGS = -I $(top_srcdir)/src
test_dvd_region_SOURCES = test/dvd_region.c src/ioctl.c
test_dvd_region_SOURCES = test/dvd_region.c
test_dvd_region_LDADD = libdvdcss.la
test_dvd_region_CFLAGS = -I $(top_srcdir)/src
......
......@@ -22,6 +22,9 @@
#include "common.h"
#include "ioctl.h"
/* On non-Linux platforms static functions from ioctl.c are used. */
#include "ioctl.c"
#define DEFAULT_DEVICE "/dev/dvd"
/*****************************************************************************
......
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