mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 07:44:36 +02:00
Make inline function also static
After compiling with GCC 7.1.0 it otherwise fails linking for some reason, complaining about that non-static inline function being not found.
This commit is contained in:
parent
73244eb976
commit
924bbbe92b
@ -42,7 +42,7 @@ void do_write(int sd, const char *raw, size_t len) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inline size_t true_sun_len(const struct sockaddr_un *ptr) {
|
static inline size_t true_sun_len(const struct sockaddr_un *ptr) {
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
/* Because SUN_LEN uses strlen and abstract namespace paths begin
|
/* Because SUN_LEN uses strlen and abstract namespace paths begin
|
||||||
* with a null byte, SUN_LEN is broken for these. Passing the full
|
* with a null byte, SUN_LEN is broken for these. Passing the full
|
||||||
|
Loading…
x
Reference in New Issue
Block a user