diff options
author | 2010-08-15 16:09:31 +0000 | |
---|---|---|
committer | 2010-08-15 16:09:31 +0000 | |
commit | afb24b5700a13e4ace6c6561e0366f4a56fbb115 (patch) | |
tree | 5c7560be9e5e5a3097fd32b80f474f283259d6a6 | |
parent | Remove garbage ipv6 scopes in netstat output (Debian Bug #508110) (diff) | |
download | net-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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> |