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…
Reference in New Issue