Signed-off-by: Karel Zak <kzak@redhat.com>
losetup_SOURCES = lomount.c $(srcs_common) loop.h lomount.h \
$(top_srcdir)/lib/strutils.c
-losetup_CPPFLAGS = -DMAIN $(AM_CPPFLAGS)
mount_static_LDADD =
bin_PROGRAMS += losetup.static
losetup_static_SOURCES = $(losetup_SOURCES)
losetup_static_LDFLAGS = $(ldflags_static)
-losetup_static_CPPFLAGS = -DMAIN $(AM_CPPFLAGS)
endif
#include <sys/sysmacros.h>
#include <inttypes.h>
#include <dirent.h>
+#include <getopt.h>
+#include <stdarg.h>
#include "loop.h"
#include "lomount.h"
return devs_n ? 2 : 1; /* more loopdevs or error */
}
-#ifdef MAIN
-
static int
set_capacity(const char *device)
{
return 0;
}
-
-#endif /* MAIN */
-
/* check if the loopfile is already associated with the same given
* parameters.
*
#endif /* !LOOP_SET_FD */
-#ifdef MAIN
-
#ifdef LOOP_SET_FD
-#include <getopt.h>
-#include <stdarg.h>
static void
usage(FILE *out) {
return -1;
}
#endif /* !LOOP_SET_FD*/
-#endif /* MAIN */