mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-26 13:05:18 +01:00
include sys so it builds on 2.2.x
also, fix misspelling of -1 (as EOF for getopt)
This commit is contained in:
parent
bf27292b35
commit
ad6af66e58
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32306
@ -1,7 +1,7 @@
|
||||
PROG= truss
|
||||
SRCS= main.c setup.c i386-fbsd.c i386-linux.c \
|
||||
syscalls.c linux_syscalls.h syscalls.h ioctl.c
|
||||
CFLAGS+= -I${.CURDIR} -I.
|
||||
CFLAGS+= -I${.CURDIR} -I. -I${.CURDIR}/../../sys
|
||||
CLEANFILES+=i386l-syscalls.master syscalls.master linux_syscalls.h \
|
||||
syscalls.h ioctl.c
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: main.c,v 1.7 1998/01/05 07:30:25 charnier Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -128,7 +128,7 @@ main(int ac, char **av) {
|
||||
int in_exec = 0;
|
||||
char *fname = NULL;
|
||||
|
||||
while ((c = getopt(ac, av, "p:o:S")) != EOF) {
|
||||
while ((c = getopt(ac, av, "p:o:S")) != -1) {
|
||||
switch (c) {
|
||||
case 'p': /* specified pid */
|
||||
pid = atoi(optarg);
|
||||
|
Loading…
Reference in New Issue
Block a user