Skip to content

Commit 8b01111

Browse files
committed
Define RNDGETENTCNT properly
That is, using _IOR() macro instead of a numeric constant.
1 parent b03f9d7 commit 8b01111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ void pbkdf2_hmac_sha256(const void *pass, size_t m, const void *salt, size_t n,
469469
#include <sys/ioctl.h>
470470
/* musl does not have <linux/random.h> so let's define RNDGETENTCNT here */
471471
#ifndef RNDGETENTCNT
472-
#define RNDGETENTCNT 0x80045200
472+
#define RNDGETENTCNT _IOR('R', 0x00, int)
473473
#endif
474474
#endif
475475

0 commit comments

Comments
 (0)