Portability fixes from Mats Erik Andersson <debian@gisladisker.se>
It restores compilability and most functionality for GNU/Linux, GNU/kFreeBSD, FreeBSD, OpenBSD, OpenSolaris/NexentaCore.
This commit is contained in:
10
iftop.h
10
iftop.h
@@ -13,6 +13,16 @@
|
||||
#define RESOLUTION 2
|
||||
#define DUMP_RESOLUTION 300
|
||||
|
||||
/* At least OpenBSD and NexentaCore do not
|
||||
* define s6_addr32 for user land settings.
|
||||
*/
|
||||
#if !defined s6_addr32 && defined __sun__
|
||||
# define s6_addr32 _S6_un._S6_u32
|
||||
#elif !defined s6_addr32 && \
|
||||
( defined __OpenBSD__ || defined __FreeBSD__ )
|
||||
# define s6_addr32 __u6_addr.__u6_addr32
|
||||
#endif /* !defined s6_addr32 */
|
||||
|
||||
typedef struct {
|
||||
long recv[HISTORY_LENGTH];
|
||||
long sent[HISTORY_LENGTH];
|
||||
|
||||
Reference in New Issue
Block a user