# OmniOS already has a competing/equivalent definition of ARRAY_SIZE # in - so ignore the local one here --- samba-4.12.0rc2/lib/replace/replace.h.ORIG Wed Feb 19 10:50:07 2020 +++ samba-4.12.0rc2/lib/replace/replace.h Wed Feb 19 10:53:15 2020 @@ -844,8 +844,10 @@ /** * Work out how many elements there are in a static array. */ +#ifndef ARRAY_SIZE #define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0])) - +#endif + /** * Pointer difference macro */