Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/systrace more effort to make it compile on platforms w/o...
details: https://anonhg.NetBSD.org/src/rev/971d40307b14
branches: trunk
changeset: 534755:971d40307b14
user: itojun <itojun%NetBSD.org@localhost>
date: Fri Aug 02 14:29:34 2002 +0000
description:
more effort to make it compile on platforms w/o linux emul
diffstat:
bin/systrace/systrace-translate.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (48 lines):
diff -r 37bdae90c043 -r 971d40307b14 bin/systrace/systrace-translate.c
--- a/bin/systrace/systrace-translate.c Fri Aug 02 14:10:25 2002 +0000
+++ b/bin/systrace/systrace-translate.c Fri Aug 02 14:29:34 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: systrace-translate.c,v 1.4 2002/08/01 08:47:04 itojun Exp $ */
+/* $NetBSD: systrace-translate.c,v 1.5 2002/08/02 14:29:34 itojun Exp $ */
/* $OpenBSD: systrace-translate.c,v 1.9 2002/07/30 06:07:06 itojun Exp $ */
/*
* Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -62,7 +62,9 @@
} while (0)
static int print_oflags(char *, size_t, struct intercept_translate *);
+#ifdef HAVE_LINUX_FCNTL_H
static int linux_print_oflags(char *, size_t, struct intercept_translate *);
+#endif
static int print_modeflags(char *, size_t, struct intercept_translate *);
static int print_number(char *, size_t, struct intercept_translate *);
static int print_uname(char *, size_t, struct intercept_translate *);
@@ -121,6 +123,7 @@
return (0);
}
+#ifdef HAVE_LINUX_FCNTL_H
static int
linux_print_oflags(char *buf, size_t buflen, struct intercept_translate *tl)
{
@@ -163,6 +166,7 @@
return (0);
}
+#endif
static int
print_modeflags(char *buf, size_t buflen, struct intercept_translate *tl)
@@ -256,10 +260,12 @@
NULL, print_oflags,
};
+#ifdef HAVE_LINUX_FCNTL_H
struct intercept_translate linux_oflags = {
"oflags",
NULL, linux_print_oflags,
};
+#endif
struct intercept_translate modeflags = {
"mode",
Home |
Main Index |
Thread Index |
Old Index