diff options
author | chris <> | 2002-11-04 12:29:06 +0000 |
---|---|---|
committer | chris <> | 2002-11-04 12:29:06 +0000 |
commit | 83c173350bea1170e7db432a33f859517981db8d (patch) | |
tree | 504db9b4ed2250cd1d973305e1be1ef3b38d58ec /options.c | |
parent | 09e55647de7217a0c4f3d994c63cdae6f301549d (diff) | |
download | iftop-83c173350bea1170e7db432a33f859517981db8d.zip |
""
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -4,6 +4,8 @@ * */ +#include <sys/types.h> + #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -11,11 +13,17 @@ #include <sys/ioctl.h> #include <sys/socket.h> +#include <netinet/in.h> +#include <arpa/inet.h> #include <net/if.h> #include "iftop.h" #include "options.h" +#if !defined(HAVE_INET_ATON) && defined(HAVE_INET_PTON) +# define inet_aton(a, b) inet_pton(AF_INET, (a), (b)) +#endif + options_t options; char optstr[] = "+i:f:nN:hpbBP"; |