aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/gcore/aoutcore.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/gcore/aoutcore.c')
-rw-r--r--usr.bin/gcore/aoutcore.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/gcore/aoutcore.c b/usr.bin/gcore/aoutcore.c
index e9c2e63c1b85..7c8ede6d9343 100644
--- a/usr.bin/gcore/aoutcore.c
+++ b/usr.bin/gcore/aoutcore.c
@@ -64,6 +64,7 @@ __FBSDID("$FreeBSD$");
#include <sys/user.h>
#include <sys/sysctl.h>
+#include <arpa/inet.h>
#include <machine/elf.h>
#include <machine/vmparam.h>
@@ -99,7 +100,8 @@ main(argc, argv)
{
struct kinfo_proc *ki = NULL;
struct exec exec;
- int ch, cnt, efd, fd, sflag, uid;
+ int ch, cnt, efd, fd, sflag;
+ uid_t uid;
char *binfile, *corefile;
char errbuf[_POSIX2_LINE_MAX], fname[MAXPATHLEN];
int is_aout;