Hi all,

I noticed that the make(1) build is broken for non-gcc compilers.
The following diff stops the build from breaking for pcc and llvm/clang.
Comments?

- Michael


Index: targ.h
===================================================================
RCS file: /usr/src/cvs/src/usr.bin/make/targ.h,v
retrieving revision 1.9
diff -u -r1.9 targ.h
--- targ.h      19 Jul 2010 19:46:44 -0000      1.9
+++ targ.h      21 Sep 2011 02:38:05 -0000
@@ -59,10 +59,7 @@
 extern inline GNode *
 Targ_FindNodeh(const char *, size_t, uint32_t, int);
 extern inline GNode *
-Targ_FindNodeh(const char *name, size_t n, uint32_t hv, int flags)
-{
-       return Targ_FindNodeih(name, name + n - 1, hv, flags);
-}
+Targ_FindNodeh(const char *, size_t, uint32_t, int);
 extern void Targ_FindList(Lst, Lst);
 extern bool Targ_Ignore(GNode *);
 extern bool Targ_Silent(GNode *);

Reply via email to