dropbear: fix compilation for uClibc
authorHans Dedecker <dedeckeh@gmail.com>
Wed, 24 Jun 2020 20:30:58 +0000 (22:30 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 24 Jun 2020 20:36:21 +0000 (22:36 +0200)
commit751e6ab8e625b7b29d1184c8f28ecd6b2df81fa0
tree80a3ffb2172ad1fe9d0ac93d92b3039749f33888
parentd4dea7efcdc46530d47b2fa33ebc7f6606491d3d
dropbear: fix compilation for uClibc

Backport patches which fix compile issue for uClibc-ng :

dbrandom.c:174:8: warning: implicit declaration of function 'getrandom'; did you mean 'genrandom'? [-Wimplicit-function-declaration]
  ret = getrandom(buf, sizeof(buf), GRND_NONBLOCK);
        ^~~~~~~~~
        genrandom
dbrandom.c:174:36: error: 'GRND_NONBLOCK' undeclared (first use in this function); did you mean 'SOCK_NONBLOCK'?
  ret = getrandom(buf, sizeof(buf), GRND_NONBLOCK);
                                    ^~~~~~~~~~~~~
                                    SOCK_NONBLOCK

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
package/network/services/dropbear/patches/001-backport_GNU_SOURCE-for-random.patch [new file with mode: 0644]
package/network/services/dropbear/patches/002-backport-move-GNU_SOURCE-earlier.patch [new file with mode: 0644]