Changeset View
Changeset View
Standalone View
Standalone View
net-mgmt/netdata/files/patch-src_apps__plugin.c
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- src/apps_plugin.c.orig 2017-07-16 19:20:50 UTC | |||||
+++ src/apps_plugin.c | |||||
@@ -1572,7 +1572,11 @@ static inline int read_pid_file_descriptors(struct pid | |||||
break; | |||||
default: | |||||
/* print protocol number and socket address */ | |||||
+#if __FreeBSD_version < 1200031 | |||||
sprintf(fdsname, "socket: other: %d %s %s", fds->kf_sock_protocol, fds->kf_sa_local.__ss_pad1, fds->kf_sa_local.__ss_pad2); | |||||
+#else | |||||
+ sprintf(fdsname, "socket: other: %d %s %s", fds->kf_sock_protocol, fds->kf_un.kf_sock.kf_sa_local.__ss_pad1, fds->kf_un.kf_sock.kf_sa_local.__ss_pad2); | |||||
+#endif | |||||
} | |||||
break; | |||||
case KF_TYPE_PIPE: |