Attempting to build under Raspbian buster (armhf) image from 2020-05-27 results in these errors:
pi@raspberrypi:~/hamradio/PiCW $ make
g++ -c -Wall -lm mailbox.c
mailbox.c: In function ‘int mbox_open()’:
mailbox.c:256:52: error: ‘makedev’ was not declared in this scope
if(mknod(LOCAL_DEVICE_FILE_NAME, S_IFCHR|0600, makedev(MAJOR_NUM_A, 0)) >= 0 &&
^~~
mailbox.c:263:52: error: ‘makedev’ was not declared in this scope
if(mknod(LOCAL_DEVICE_FILE_NAME, S_IFCHR|0600, makedev(MAJOR_NUM_B, 0)) >= 0 &&
^~~
make: *** [makefile:9: mailbox.o] Error 1
Attempting to build under Raspbian buster (armhf) image from 2020-05-27 results in these errors:
pi@raspberrypi:~/hamradio/PiCW $ make g++ -c -Wall -lm mailbox.c mailbox.c: In function ‘int mbox_open()’: mailbox.c:256:52: error: ‘makedev’ was not declared in this scope if(mknod(LOCAL_DEVICE_FILE_NAME, S_IFCHR|0600, makedev(MAJOR_NUM_A, 0)) >= 0 && ^
~~ mailbox.c:263:52: error: ‘makedev’ was not declared in this scope if(mknod(LOCAL_DEVICE_FILE_NAME, S_IFCHR|0600, makedev(MAJOR_NUM_B, 0)) >= 0 && ^~~ make: *** [makefile:9: mailbox.o] Error 1