Fix implicit declaration of functions
Brought to you by:
andreasb123,
auroux
Hi,
Building xournal 0.4.8.2016 with clang on macOS encounters numerous implicit declaration of function problems:
implicit declaration of function 'read' is invalid in C99
implicit declaration of function 'write' is invalid in C99
implicit declaration of function 'close' is invalid in C99
implicit declaration of function 'make_dashed' is invalid in C99
implicit declaration of function 'set_cursor_busy' is invalid in C99
This type of problem used to be a warning but in Xcode 12 it becomes an error so it's important to fix them.
This was reported to MacPorts here: https://trac.macports.org/ticket/61147
I'm attaching the patch I used to fix the problem. Perhaps you can apply it to your repository.