aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-08-15 16:09:31 +0000
committerMike Frysinger <vapier@gentoo.org>2010-08-15 16:09:31 +0000
commitafb24b5700a13e4ace6c6561e0366f4a56fbb115 (patch)
tree5c7560be9e5e5a3097fd32b80f474f283259d6a6
parentRemove garbage ipv6 scopes in netstat output (Debian Bug #508110) (diff)
downloadnet-tools-afb24b5700a13e4ace6c6561e0366f4a56fbb115.tar.gz
net-tools-afb24b5700a13e4ace6c6561e0366f4a56fbb115.tar.bz2
net-tools-afb24b5700a13e4ace6c6561e0366f4a56fbb115.zip
netstat: include sys/stat.h for S_ISREG macros
newer versions of glibc (like 2.12) have cleaned up headers so you need to include sys/stat.h explicitly for S_XXX macros Gentoo bug 332853
-rw-r--r--netstat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/netstat.c b/netstat.c
index 0e3466b..5721c1c 100644
--- a/netstat.c
+++ b/netstat.c
@@ -6,7 +6,7 @@
* NET-3 Networking Distribution for the LINUX operating
* system.
*
- * Version: $Id: netstat.c,v 1.69 2010-03-05 15:35:02 ecki Exp $
+ * Version: $Id: netstat.c,v 1.70 2010-08-15 16:09:31 vapier Exp $
*
* Authors: Fred Baumgarten, <dc6iq@insu1.etec.uni-karlsruhe.de>
* Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
@@ -85,6 +85,7 @@
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
+#include <sys/stat.h>
#include <net/if.h>
#include <dirent.h>