diff options
author | Thomas Haller <thaller@redhat.com> | 2016-02-12 17:02:13 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-02-12 17:03:28 +0100 |
commit | 89e806e1a63fb57e875a0e7051877de436dd2e00 (patch) | |
tree | f35ec910932a290133d12e037c6c1754a78e7374 | |
parent | 7ec5acdc66b396cd2623a4a99be08e0267d93489 (diff) | |
download | NetworkManager-89e806e1a63fb57e875a0e7051877de436dd2e00.tar.gz |
systemd: don't use <uchar.h>
Not around on Ubuntu 12.04. Define the char16_t and char32_t types
ourselves.
Fixes: 2835934244e6f3b1d54315d2e1809af4d78ee877
-rw-r--r-- | src/systemd/nm-sd-adapt.h | 6 | ||||
-rw-r--r-- | src/systemd/src/basic/escape.h | 2 | ||||
-rw-r--r-- | src/systemd/src/basic/utf8.h | 2 |
3 files changed, 10 insertions, 0 deletions
diff --git a/src/systemd/nm-sd-adapt.h b/src/systemd/nm-sd-adapt.h index 967cb48fac..84a497caf3 100644 --- a/src/systemd/nm-sd-adapt.h +++ b/src/systemd/nm-sd-adapt.h @@ -114,6 +114,12 @@ G_STMT_START { \ /*****************************************************************************/ +/* work around missing uchar.h */ +typedef guint16 char16_t; +typedef guint32 char32_t; + +/*****************************************************************************/ + /* Can't include both net/if.h and linux/if.h; so have to define this here */ #ifndef IFNAMSIZ #define IFNAMSIZ 16 diff --git a/src/systemd/src/basic/escape.h b/src/systemd/src/basic/escape.h index 6ca36a75e5..9f1bb45f77 100644 --- a/src/systemd/src/basic/escape.h +++ b/src/systemd/src/basic/escape.h @@ -25,7 +25,9 @@ #include <stddef.h> #include <stdint.h> #include <sys/types.h> +#if 0 /* NM_IGNORED */ #include <uchar.h> +#endif /* NM_IGNORED */ #include "string-util.h" #if 0 /* NM_IGNORED */ diff --git a/src/systemd/src/basic/utf8.h b/src/systemd/src/basic/utf8.h index 0a7858ca67..8b917cb03e 100644 --- a/src/systemd/src/basic/utf8.h +++ b/src/systemd/src/basic/utf8.h @@ -24,7 +24,9 @@ #include <stdbool.h> #include <stddef.h> #include <stdint.h> +#if 0 /* NM_IGNORED */ #include <uchar.h> +#endif /* NM_IGNORED */ #include "macro.h" #if 0 /* NM_IGNORED */ |