tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: install/48303: Linux cross build fails on ppc



I looked at where this was being redefined and it is in compat_defs.h
and the following patch fixes this issue, which makes it somewhat
simpler than I thought to fix. The only question is whether undefining
__unused is necessary on some other platform, in which case the
#define __unused could be wrapped eg in #ifndef __linux__ which should
be safe.

cvs diff -u tools/compat/compat_defs.h
Index: tools/compat/compat_defs.h
===================================================================
RCS file: /cvsroot/src/tools/compat/compat_defs.h,v
retrieving revision 1.93
diff -u -r1.93 compat_defs.h
--- tools/compat/compat_defs.h 24 Oct 2013 13:59:47 -0000 1.93
+++ tools/compat/compat_defs.h 28 Oct 2013 10:26:16 -0000
@@ -130,7 +130,6 @@
 #undef __restrict
 #define __restrict
 #undef __unused
-#define __unused
 #undef __arraycount
 #define __arraycount(__x) (sizeof(__x) / sizeof(__x[0]))
 #undef __USE



On Sat, Oct 12, 2013 at 11:05 AM,  <gnats-admin%netbsd.org@localhost> wrote:
> Thank you very much for your problem report.
> It has the internal identification `install/48303'.
> The individual assigned to look at your
> report is: install-manager.
>
>>Category:       install
>>Responsible:    install-manager
>>Synopsis:       Linux cross build fails on ppc
>>Arrival-Date:   Sat Oct 12 10:05:01 +0000 2013
>


Home | Main Index | Thread Index | Old Index