sysutils/smart: fix build with mips, mips64, powerpc64

Issue #9 resolved
Chuck Tuffli repo owner created an issue

Via FreeBSD ports :

GCC treats const int as a variable and forbids creating arrays of a size of such variable. Switch from const int to define to fix it. Tested on powerpc64 and amd64. Hardware sponsored by IntegriCloud.

Comments (1)

  1. Chuck Tuffli reporter

    Fix gcc compilation error

    gcc doesn't allow the use of constant variables in array calculations like clang does which causes FreeBSD port build failures on arch's which don't use clang (e.g. mips, powerpc, etc).

    Fix is to move the const variable to a macro.

    resolved bug #9

    → <<cset 41c031109275>>

  2. Log in to comment