dns320l-mcu: Fix compilation with GCC 14
authorHauke Mehrtens <[email protected]>
Fri, 2 May 2025 23:12:59 +0000 (01:12 +0200)
committerHauke Mehrtens <[email protected]>
Sat, 3 May 2025 20:04:13 +0000 (22:04 +0200)
commitb77684d2c1897c27da5718b7a18b6f9ad3e41bc1
treed084556e583f60e9919536df4798f47c202695b9
parente8cfa339feed4ca8328ef863dc8a8af67509c7ad
dns320l-mcu: Fix compilation with GCC 14

This fixes the following compile problem:
```
dns320l-daemon.c: In function 'main':
dns320l-daemon.c:740:18: error: implicit declaration of function 'isprint' [-Wimplicit-function-declaration]
  740 |         else if (isprint (optopt))
      |                  ^~~~~~~
dns320l-daemon.c:50:1: note: include '<ctype.h>' or provide a declaration of 'isprint'
   49 | #include "dns320l-daemon.h"
  +++ |+#include <ctype.h>
   50 |
dns320l-daemon.c:799:5: error: implicit declaration of function 'umask' [-Wimplicit-function-declaration]
  799 |     umask(0);
      |     ^~~~~
dns320l-daemon.c:864:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
  864 |     return;
      |     ^~~~~~
dns320l-daemon.c:691:5: note: declared here
  691 | int main(int argc, char *argv[])
      |     ^~~~
```

Link: https://github.com/openwrt/openwrt/pull/18688
Signed-off-by: Hauke Mehrtens <[email protected]>
package/utils/dns320l-mcu/Makefile
package/utils/dns320l-mcu/patches/010-gcc-14-fixes.patch [new file with mode: 0644]