mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 05:50:08 +01:00
systemd: add dummy header files to adapt compilation of systemd sources
Instead of repeatedly disabling the inclusion like #if 0 /* NM_IGNORED */ #include "missing.h" #endif /* NM_IGNORED */ add dummy header files to "src/systemd/sd-adapt".
This commit is contained in:
parent
2f296cb8fe
commit
4c849d148f
36 changed files with 86 additions and 62 deletions
|
|
@ -33,6 +33,7 @@ SUBDIRS += \
|
|||
endif
|
||||
|
||||
SYSTEMD_NM_CFLAGS_PATHS = \
|
||||
-I$(top_srcdir)/src/systemd/sd-adapt/ \
|
||||
-I$(top_srcdir)/src/systemd/src/systemd \
|
||||
-I$(top_srcdir)/src/systemd/src/libsystemd-network \
|
||||
-I$(top_srcdir)/src/systemd/src/basic \
|
||||
|
|
@ -107,6 +108,24 @@ libsystemd_nm_la_SOURCES = \
|
|||
systemd/nm-sd.h \
|
||||
systemd/nm-sd-adapt.c \
|
||||
systemd/nm-sd-adapt.h \
|
||||
systemd/sd-adapt/build.h \
|
||||
systemd/sd-adapt/cgroup-util.h \
|
||||
systemd/sd-adapt/condition.h \
|
||||
systemd/sd-adapt/conf-parser.h \
|
||||
systemd/sd-adapt/def.h \
|
||||
systemd/sd-adapt/dirent-util.h \
|
||||
systemd/sd-adapt/formats-util.h \
|
||||
systemd/sd-adapt/gunicode.h \
|
||||
systemd/sd-adapt/libudev.h \
|
||||
systemd/sd-adapt/missing.h \
|
||||
systemd/sd-adapt/mkdir.h \
|
||||
systemd/sd-adapt/process-util.h \
|
||||
systemd/sd-adapt/sd-daemon.h \
|
||||
systemd/sd-adapt/stat-util.h \
|
||||
systemd/sd-adapt/udev-util.h \
|
||||
systemd/sd-adapt/udev.h \
|
||||
systemd/sd-adapt/user-util.h \
|
||||
systemd/sd-adapt/virt.h \
|
||||
systemd/src/basic/alloc-util.c \
|
||||
systemd/src/basic/alloc-util.h \
|
||||
systemd/src/basic/async.h \
|
||||
|
|
|
|||
|
|
@ -140,8 +140,12 @@ sd_notify (int unset_environment, const char *state)
|
|||
}
|
||||
|
||||
/* Can't include both net/if.h and linux/if.h; so have to define this here */
|
||||
#ifndef IF_NAMESIZE
|
||||
#define IF_NAMESIZE 16
|
||||
#endif
|
||||
|
||||
#ifndef IFNAMSIZ
|
||||
#define IFNAMSIZ 16
|
||||
#define IFNAMSIZ IF_NAMESIZE
|
||||
#endif
|
||||
|
||||
#ifndef MAX_HANDLE_SZ
|
||||
|
|
|
|||
3
src/systemd/sd-adapt/build.h
Normal file
3
src/systemd/sd-adapt/build.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
3
src/systemd/sd-adapt/cgroup-util.h
Normal file
3
src/systemd/sd-adapt/cgroup-util.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
5
src/systemd/sd-adapt/condition.h
Normal file
5
src/systemd/sd-adapt/condition.h
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
|
||||
typedef struct _sd_adapt_Condition Condition;
|
||||
3
src/systemd/sd-adapt/conf-parser.h
Normal file
3
src/systemd/sd-adapt/conf-parser.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
3
src/systemd/sd-adapt/def.h
Normal file
3
src/systemd/sd-adapt/def.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
3
src/systemd/sd-adapt/dirent-util.h
Normal file
3
src/systemd/sd-adapt/dirent-util.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
3
src/systemd/sd-adapt/formats-util.h
Normal file
3
src/systemd/sd-adapt/formats-util.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
3
src/systemd/sd-adapt/gunicode.h
Normal file
3
src/systemd/sd-adapt/gunicode.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
5
src/systemd/sd-adapt/libudev.h
Normal file
5
src/systemd/sd-adapt/libudev.h
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
|
||||
struct udev_device;
|
||||
3
src/systemd/sd-adapt/missing.h
Normal file
3
src/systemd/sd-adapt/missing.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
3
src/systemd/sd-adapt/mkdir.h
Normal file
3
src/systemd/sd-adapt/mkdir.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
3
src/systemd/sd-adapt/process-util.h
Normal file
3
src/systemd/sd-adapt/process-util.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
3
src/systemd/sd-adapt/sd-daemon.h
Normal file
3
src/systemd/sd-adapt/sd-daemon.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
3
src/systemd/sd-adapt/stat-util.h
Normal file
3
src/systemd/sd-adapt/stat-util.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
3
src/systemd/sd-adapt/udev-util.h
Normal file
3
src/systemd/sd-adapt/udev-util.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
5
src/systemd/sd-adapt/udev.h
Normal file
5
src/systemd/sd-adapt/udev.h
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
|
||||
#include "libudev.h"
|
||||
3
src/systemd/sd-adapt/user-util.h
Normal file
3
src/systemd/sd-adapt/user-util.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
3
src/systemd/sd-adapt/virt.h
Normal file
3
src/systemd/sd-adapt/virt.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
/* dummy header */
|
||||
|
|
@ -28,9 +28,7 @@
|
|||
#endif /* NM_IGNORED */
|
||||
|
||||
#include "string-util.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "missing.h"
|
||||
#endif /* NM_IGNORED */
|
||||
|
||||
/* What characters are special in the shell? */
|
||||
/* must be escaped outside and inside double-quotes */
|
||||
|
|
|
|||
|
|
@ -29,9 +29,7 @@
|
|||
#include "fd-util.h"
|
||||
#include "fs-util.h"
|
||||
#include "macro.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "missing.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "socket-util.h"
|
||||
|
|
|
|||
|
|
@ -30,30 +30,22 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "dirent-util.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "fd-util.h"
|
||||
#include "fileio.h"
|
||||
#include "fs-util.h"
|
||||
#include "log.h"
|
||||
#include "macro.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "missing.h"
|
||||
#include "mkdir.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "stat-util.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "stdio-util.h"
|
||||
#include "string-util.h"
|
||||
#include "strv.h"
|
||||
#include "time-util.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "user-util.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "util.h"
|
||||
|
||||
int unlink_noerrno(const char *path) {
|
||||
|
|
|
|||
|
|
@ -29,9 +29,7 @@
|
|||
#include "hashmap.h"
|
||||
#include "macro.h"
|
||||
#include "mempool.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "process-util.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "random-util.h"
|
||||
#include "set.h"
|
||||
#include "siphash24.h"
|
||||
|
|
|
|||
|
|
@ -31,9 +31,7 @@
|
|||
#include "extract-word.h"
|
||||
#include "macro.h"
|
||||
#include "parse-util.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "process-util.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "string-util.h"
|
||||
|
||||
int parse_boolean(const char *v) {
|
||||
|
|
|
|||
|
|
@ -38,13 +38,9 @@
|
|||
#include "fs-util.h"
|
||||
#include "log.h"
|
||||
#include "macro.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "missing.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "path-util.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "stat-util.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "string-util.h"
|
||||
#include "strv.h"
|
||||
#include "time-util.h"
|
||||
|
|
|
|||
|
|
@ -34,9 +34,7 @@
|
|||
|
||||
#include "fd-util.h"
|
||||
#include "io-util.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "missing.h"
|
||||
#endif
|
||||
#include "random-util.h"
|
||||
#include "time-util.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -36,23 +36,17 @@
|
|||
#include "alloc-util.h"
|
||||
#include "fd-util.h"
|
||||
#include "fileio.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "formats-util.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "log.h"
|
||||
#include "macro.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "missing.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "socket-util.h"
|
||||
#include "string-table.h"
|
||||
#include "string-util.h"
|
||||
#include "strv.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "user-util.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "utf8.h"
|
||||
#include "util.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -27,9 +27,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "gunicode.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "macro.h"
|
||||
#include "string-util.h"
|
||||
#include "utf8.h"
|
||||
|
|
|
|||
|
|
@ -27,9 +27,7 @@
|
|||
#endif /* NM_IGNORED */
|
||||
|
||||
#include "macro.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "missing.h"
|
||||
#endif /* NM_IGNORED */
|
||||
|
||||
#define UTF8_REPLACEMENT_CHARACTER "\xef\xbf\xbd"
|
||||
#define UTF8_BYTE_ORDER_MARK "\xef\xbb\xbf"
|
||||
|
|
|
|||
|
|
@ -37,41 +37,29 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "build.h"
|
||||
#include "cgroup-util.h"
|
||||
#include "def.h"
|
||||
#include "dirent-util.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "fd-util.h"
|
||||
#include "fileio.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "formats-util.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "hashmap.h"
|
||||
#include "hostname-util.h"
|
||||
#include "log.h"
|
||||
#include "macro.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "missing.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "process-util.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "set.h"
|
||||
#include "signal-util.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "stat-util.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "string-util.h"
|
||||
#include "strv.h"
|
||||
#include "time-util.h"
|
||||
#include "umask-util.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "user-util.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "util.h"
|
||||
|
||||
/* Put this test here for a lack of better place */
|
||||
|
|
|
|||
|
|
@ -41,13 +41,9 @@
|
|||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "formats-util.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "macro.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "missing.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "time-util.h"
|
||||
|
||||
size_t page_size(void) _pure_;
|
||||
|
|
|
|||
|
|
@ -19,9 +19,7 @@
|
|||
|
||||
#include "nm-sd-adapt.h"
|
||||
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "libudev.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "sd-id128.h"
|
||||
|
||||
#include "dhcp-identifier.h"
|
||||
|
|
@ -29,9 +27,10 @@
|
|||
#include "network-internal.h"
|
||||
#include "siphash24.h"
|
||||
#include "sparse-endian.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "udev-util.h"
|
||||
#include "virt.h"
|
||||
|
||||
#if 0 /* NM_IGNORED */
|
||||
#else /* NM_IGNORED */
|
||||
#include <net/if.h>
|
||||
#endif /* NM_IGNORED */
|
||||
|
|
|
|||
|
|
@ -26,10 +26,8 @@
|
|||
#include "sd-ndisc.h"
|
||||
|
||||
#include "alloc-util.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "condition.h"
|
||||
#include "conf-parser.h"
|
||||
#endif /* NM_IGNORED */
|
||||
#include "dhcp-lease-internal.h"
|
||||
#include "ether-addr-util.h"
|
||||
#include "hexdecoct.h"
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
#include "sd-dhcp-lease.h"
|
||||
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "condition.h"
|
||||
#include "udev.h"
|
||||
|
||||
|
|
@ -65,7 +64,6 @@ int config_parse_iaid(const char *unit, const char *filename, unsigned line,
|
|||
|
||||
int net_get_unique_predictable_data(struct udev_device *device, uint64_t *result);
|
||||
const char *net_get_name(struct udev_device *device);
|
||||
#endif /* NM_IGNORED */
|
||||
|
||||
void serialize_in_addrs(FILE *f, const struct in_addr *addresses, size_t size);
|
||||
int deserialize_in_addrs(struct in_addr **addresses, const char *string);
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
#include <sys/timerfd.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "sd-daemon.h"
|
||||
#endif
|
||||
#include "sd-event.h"
|
||||
#include "sd-id128.h"
|
||||
|
||||
|
|
@ -34,13 +32,9 @@
|
|||
#include "hashmap.h"
|
||||
#include "list.h"
|
||||
#include "macro.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "missing.h"
|
||||
#endif
|
||||
#include "prioq.h"
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include "process-util.h"
|
||||
#endif
|
||||
#include "set.h"
|
||||
#include "signal-util.h"
|
||||
#include "string-table.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue