The mount.h file name is too generic.
Signed-off-by: Karel Zak <kzak@redhat.com>
ul_libmount_builddir = $(top_builddir)/shlibs/mount/src
ul_libmount_la = $(top_builddir)/shlibs/mount/src/libmount.la
-# mount.h is generated by ./configure script and stored in build directory
+# libmount.h is generated by ./configure script and stored in build directory
ul_libmount_incdir = $(ul_libmount_builddir)
$(ul_libmount_la):
shlibs/mount/mount.pc
shlibs/mount/Makefile
shlibs/mount/src/Makefile
-shlibs/mount/src/mount.h
+shlibs/mount/src/libmount.h
shlibs/mount/docs/Makefile
shlibs/mount/docs/version.xml
shlibs/mount/samples/Makefile
#include <assert.h>
#define USE_UNSTABLE_LIBMOUNT_API
-#include <mount.h>
+#include <libmount.h>
#include "pathnames.h"
#include "nls.h"
#ifdef HAVE_LIBMOUNT_MOUNT
#define USE_UNSTABLE_LIBMOUNT_API
-#include <mount.h> /* libmount */
+#include <libmount.h> /* libmount */
static void read_mounttable()
{
#ifdef HAVE_LIBMOUNT_MOUNT
#define USE_UNSTABLE_LIBMOUNT_API
-#include <mount.h> /* libmount */
+#include <libmount.h>
extern mnt_lock *init_libmount_lock(const char *filename);
#endif
test_*
-mount.h
+libmount.h
# Used for dependencies. The docs will be rebuilt if any of these change.
# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
-HFILE_GLOB=$(ul_libmount_incdir)/mount.h
+HFILE_GLOB=$(ul_libmount_incdir)/libmount.h
CFILE_GLOB=$(ul_libmount_srcdir)/*.c
# Extra header to include when scanning, which are not under DOC_SOURCE_DIR
Description: mount library
Version: @LIBMOUNT_VERSION@
Requires.private: blkid
-Cflags: -I${includedir}/mount
+Cflags: -I${includedir}/libmount
Libs: -L${libdir} -lmount
#include <unistd.h>
#include <sys/types.h>
-#include "mount.h"
+#include <libmount.h>
+
#include "nls.h"
#include "c.h"
-I$(ul_libblkid_incdir)
# includes
-mountincdir = $(includedir)/mount
-nodist_mountinc_HEADERS = mount.h
+mountincdir = $(includedir)/libmount
+nodist_mountinc_HEADERS = libmount.h
usrlib_exec_LTLIBRARIES = libmount.la
libmount_la_SOURCES = mountP.h version.c utils.c test.c init.c cache.c \
libmount_la_LIBADD = $(ul_libblkid_la) $(SELINUX_LIBS)
-libmount_la_DEPENDENCIES = $(libmount_la_LIBADD) mount.sym mount.h.in
+libmount_la_DEPENDENCIES = $(libmount_la_LIBADD) mount.sym libmount.h.in
libmount_la_LDFLAGS = -Wl,--version-script=$(ul_libmount_srcdir)/mount.sym \
-version-info $(LIBMOUNT_VERSION_INFO)
TESTS_LIBS += $(SELINUX_LIBS)
endif
-EXTRA_DIST = mount.sym mount.h.in
+EXTRA_DIST = mount.sym libmount.h.in
CLEANFILES = $(tests)
# move lib from $(usrlib_execdir) to $(libdir) if needed
#define USE_UNSTABLE_LIBMOUNT_API
-#include "mount.h"
+#include "libmount.h"
#include "list.h"
/* features */