NetworkManager/shared/systemd/sd-adapt-shared
Thomas Haller cfb970b277 shared/systemd: fix gettid() compat implementation shadowing function from glibc
On Fedora rawhide we get the following build failure:

    In file included from shared/systemd/src/basic/alloc-util.c:3:
    ./shared/systemd/sd-adapt-shared/nm-sd-adapt-shared.h:114:21: error: static declaration of 'gettid' follows non-static declaration
      114 | static inline pid_t gettid(void) {
          |                     ^~~~~~
    In file included from /usr/include/unistd.h:1170,
                     from /usr/include/glib-2.0/gio/gcredentials.h:32,
                     from /usr/include/glib-2.0/gio/gio.h:46,
                     from ./shared/nm-utils/nm-macros-internal.h:31,
                     from ./shared/nm-default.h:293,
                     from ./shared/systemd/sd-adapt-shared/nm-sd-adapt-shared.h:22,
                     from shared/systemd/src/basic/alloc-util.c:3:
    /usr/include/bits/unistd_ext.h:34:16: note: previous declaration of 'gettid' was here
       34 | extern __pid_t gettid (void) __THROW;
          |                ^~~~~~

glibc supports now gettid() call ([1]) which conflicts with our compat
implementation. Rename it.

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=1d0fc213824eaa2a8f8c4385daaa698ee8fb7c92

(cherry picked from commit 10276322bd)
2019-03-11 19:09:59 +01:00
..
architecture.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
btrfs-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
build.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
cgroup-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
copy.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
def.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
device-nodes.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
dirent-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
errno-list.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
format-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
glob-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
gunicode.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
ioprio.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
locale-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
memfd-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
missing.h systemd: merge branch systemd into master 2019-02-06 09:28:36 +01:00
missing_socket.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
missing_syscall.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
missing_timerfd.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
mkdir.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
nm-sd-adapt-shared.h shared/systemd: fix gettid() compat implementation shadowing function from glibc 2019-03-11 19:09:59 +01:00
procfs-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
raw-clone.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
rlimit-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
terminal-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
unaligned.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
user-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
virt.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00