1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-18 18:50:44 +03:00

scripts: simplify including for generator

Uses included .c file as primary header includer.
This commit is contained in:
Zdenek Kabelac 2018-12-21 19:14:32 +01:00
parent a4577c427a
commit 0161ebe484
3 changed files with 2 additions and 22 deletions

View File

@ -1,6 +1,8 @@
// This file contains the unit testable parts of
// lvm2_activation_generator_systemd_red_hat
#include "device_mapper/all.h"
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>

View File

@ -12,29 +12,9 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h> /* For PATH_MAX for musl libc */
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <syslog.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include "configure.h"
#include "device_mapper/all.h"
//----------------------------------------------------------------
// Code in this file gets included in the unit tests.
#include "generator-internals.c"
//----------------------------------------------------------------
// Logging
#define KMSG_DEV_PATH "/dev/kmsg"

View File

@ -15,8 +15,6 @@
#include "units.h"
#include "scripts/generator-internals.c"
#include "device_mapper/all.h"
//----------------------------------------------------------------
static void _error(const char *format, ...)