Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102613063
D27599.id81755.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D27599.id81755.diff
View Options
Index: bin/cat/cat.c
===================================================================
--- bin/cat/cat.c
+++ bin/cat/cat.c
@@ -74,7 +74,9 @@
static void usage(void) __dead2;
static void scanfiles(char *argv[], int cooked);
+#ifndef BOOTSTRAP_CAT
static void cook_cat(FILE *);
+#endif
static void raw_cat(int);
#ifndef NO_UDOM_SUPPORT
@@ -178,11 +180,13 @@
}
static void
-scanfiles(char *argv[], int cooked)
+scanfiles(char *argv[], int cooked __unused)
{
int fd, i;
char *path;
+#ifndef BOOTSTRAP_CAT
FILE *fp;
+#endif
i = 0;
fd = -1;
Index: tools/build/Makefile
===================================================================
--- tools/build/Makefile
+++ tools/build/Makefile
@@ -105,9 +105,6 @@
# not match.
RPCINCS+= ${SRCTOP}/sys/rpc/types.h
-.if ${.MAKE.OS} != "FreeBSD"
-.PATH: ${.CURDIR}/cross-build
-
INCS+= ${SRCTOP}/include/mpool.h
INCS+= ${SRCTOP}/include/ndbm.h
INCS+= ${SRCTOP}/include/err.h
@@ -143,6 +140,9 @@
SYSINCS+= ${SRCTOP}/sys/sys/imgact_aout.h
SYSINCS+= ${SRCTOP}/sys/sys/nlist_aout.h
+
+.if ${.MAKE.OS} != "FreeBSD"
+.PATH: ${.CURDIR}/cross-build
# dbopen() behaves differently on Linux and FreeBSD so we ensure that we
# bootstrap the FreeBSD db code. The cross-build headers #define dbopen() to
# __freebsd_dbopen() so that we don't ever use the host version
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 15, 7:38 PM (8 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14647044
Default Alt Text
D27599.id81755.diff (1 KB)
Attached To
Mode
D27599: Fix all warnings emitted in `make kernel-toolchain`
Attached
Detach File
Event Timeline
Log In to Comment