You need to add in file mailbox.c the reference to sysmacros.h #include <sys/sysmacros.h>
You need to add in file mailbox.c the reference to sysmacros.h
#include <sys/sysmacros.h>