0005-bmake-local-modifications-in-order-to-make-it-compil.patch

kAworu, 11/22/2013 02:26 AM

Download (1.51 KB)

View differences:

contrib/bmake/main.c
922 922
	    const int mib[2] = { CTL_HW, HW_MACHINE_ARCH };
923 923
	    size_t len = sizeof(machine_arch_buf);
924 924
                
925
	    if (sysctl(mib, __arraycount(mib), machine_arch_buf,
925
	    if (sysctl(__DECONST(int *, mib) /* XXX */, __arraycount(mib), machine_arch_buf,
926 926
		    &len, NULL, 0) < 0) {
927 927
		(void)fprintf(stderr, "%s: sysctl failed (%s).\n", progname,
928 928
		    strerror(errno));
contrib/bmake/var.c
543 543
    if (strchr(name, '$')) {
544 544
	cp = Var_Subst(NULL, name, VAR_GLOBAL, 0);
545 545
    } else {
546
	cp = (char *)name;
546
	cp = __DECONST(char *,name); /* XXX */
547 547
    }
548 548
    ln = Hash_FindEntry(&ctxt->context, cp);
549 549
    if (DEBUG(VAR)) {
550
-