patch-2.1.131 linux/scripts/mkdep.c
Next file: linux/CREDITS
Previous file: linux/net/ipv4/tcp_ipv4.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Wed Dec 2 10:04:04 1998
- Orig file:
v2.1.130/linux/scripts/mkdep.c
- Orig date:
Tue Jun 23 10:01:31 1998
diff -u --recursive --new-file v2.1.130/linux/scripts/mkdep.c linux/scripts/mkdep.c
@@ -31,7 +31,7 @@
int len;
char buffer[256-sizeof(int)];
} path_array[2] = {
- { 23, "/usr/src/linux/include/" },
+ { 0, "" },
{ 0, "" }
};
@@ -462,8 +462,11 @@
char *hpath;
hpath = getenv("HPATH");
- if (!hpath)
- hpath = "/usr/src/linux/include";
+ if (!hpath) {
+ fputs("mkdep: HPATH not set in environment. "
+ "Don't bypass the top level Makefile.\n", stderr);
+ return 1;
+ }
len = strlen(hpath);
memcpy(path_array[0].buffer, hpath, len);
if (len && hpath[len-1] != '/')
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov