union semun is doubly defined in FreeBSD 9, and will not successfully configure. I have verified that the code is the same in FreeBSD 4.0.
FreeBSD defines union semun in sys/sem.h.
I will upload a patch.
CVS created path file.
committed to CVS HEAD and git master