#!/bin/sh
# DF-0732 build: compile the BUGGY transcription (matches current source)
# and the FIXED transcription (lock-before-read + M_ZERO + bounded foreach).
set -e
cd "$(dirname "$0")"
echo "[build] BUGGY transcription (matches ieee80211_acl.c current source)"
cc -O2 -pthread -Wall -Wextra -o harness harness.c
echo "[build] FIXED transcription (-DFIXED: lock-before-read + M_ZERO + bounded foreach)"
cc -O2 -pthread -Wall -Wextra -DFIXED -o harness_fixed harness.c
echo "[build] OK"
ls -l harness harness_fixed
