summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorchris <>2002-11-04 12:29:06 +0000
committerchris <>2002-11-04 12:29:06 +0000
commit83c173350bea1170e7db432a33f859517981db8d (patch)
tree504db9b4ed2250cd1d973305e1be1ef3b38d58ec /options.c
parent09e55647de7217a0c4f3d994c63cdae6f301549d (diff)
downloadiftop-83c173350bea1170e7db432a33f859517981db8d.zip
""
Diffstat (limited to 'options.c')
-rw-r--r--options.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/options.c b/options.c
index 864e060..cd53838 100644
--- a/options.c
+++ b/options.c
@@ -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";