I had a problem where const would be defined to be empty when building cfengine and the build would fail because of this.
I enclose a patch that fixes the problem. The problem could happen on other systems as well, I reckon, and therefore this change, which replaces ---------------- #ifndef const # define const #endif -------------- With -------------- #if !defined __STDC__ || !__STDC__ /* This is a separate conditional since some stdc systems reject `defined (const)'. */ # ifndef const # define const # endif #endif -------- the one place it was necessary for me to build on Windows should perhaps been applied everywhere in patches.c where const is defined. Cheers, PER
_______________________________________________ Bug-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/bug-cfengine
