Messages in this thread Patch in this message |  | | Date | Sun, 1 Dec 1996 15:34:51 -0500 (EST) | From | Ion Badulescu <> | Subject | Re: Linux-2.0.27 and 2.1.14 |
| |
On Sun, 1 Dec 1996, Linus Torvalds wrote:
> Oops. The new and improved "mkdep.c" is no longer very forgiving about > header files that do not exist, and the net_alias.c file has a few > #include's that are used for user-level debugging but do not exist in the > kernel. > > Fix: remove the stuff that is within the ALIAS_USER_LAND_DEBUG in > net_alias.c, redo the dependencies and go.. > > (alternatively you can put the comment /*nodep*/ btween the #-mark and the > "include", which forces mkdep to ignore the dependency)
Actually, it might be more apropriate to fix the "new and improved" mkdep.c :-) Patch follows...
[Explanation: there is no need for mkdep to create additional problems with header files - the compile will fail anyway if a needed header file is missing. So, if mkdep can't access a file at `make depend' time, it simply skips it]
Ionut
-- It is better to keep your mouth shut and be thought a fool, than to open it and remove all doubt.
--- linux/scripts/mkdep.c.old Sun Dec 1 15:24:50 1996 +++ linux/scripts/mkdep.c Sun Dec 1 15:28:01 1996 @@ -40,6 +40,8 @@ memcpy(path->buffer+plen, name, len); len += plen; path->buffer[len] = '\0'; + if (access(path->buffer, F_OK)) + return; if (!hasdep) { hasdep = 1;
|  |