Skip to content

Commit f4f57f4

Browse files
committed
Lets try defining the functions.
1 parent e815a28 commit f4f57f4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/getrandom-fallbacks.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,23 @@
2929
test will not work. */
3030
#if defined HAVE_ARC4RANDOM_BUF || !defined HAVE_LD_WRAP
3131

32+
extern int __wrap_open (const char *path, int flags, mode_t mode);
33+
extern int __wrap_close (int fd);
34+
35+
int
36+
__wrap_open (ARG_UNUSED (const char *path),
37+
ARG_UNUSED (int flags),
38+
ARG_UNUSED (mode_t mode))
39+
{
40+
return -1;
41+
}
42+
43+
int
44+
__wrap_close (ARG_UNUSED (int fd))
45+
{
46+
return -1;
47+
}
48+
3249
int
3350
main (void)
3451
{

0 commit comments

Comments
 (0)