@@ -36,8 +36,12 @@ int check_openssl_compatibility()
36
36
static uint testing ;
37
37
static size_t alloc_size , alloc_count ;
38
38
39
- static void * coc_malloc (size_t size , const char * f __attribute__((unused )),
40
- int l __attribute__((unused )))
39
+ static void * coc_malloc (size_t size
40
+ #ifndef LIBRESSL_VERSION_NUMBER
41
+ , const char * f __attribute__((unused )),
42
+ int l __attribute__((unused ))
43
+ #endif
44
+ )
41
45
{
42
46
if (unlikely (testing ))
43
47
{
@@ -47,15 +51,22 @@ static void *coc_malloc(size_t size, const char *f __attribute__((unused)),
47
51
return malloc (size );
48
52
}
49
53
50
- static void * coc_realloc (void * addr , size_t num ,
51
- const char * file __attribute__((unused )),
52
- int line __attribute__((unused )))
54
+ static void * coc_realloc (void * addr , size_t num
55
+ #ifndef LIBRESSL_VERSION_NUMBER
56
+ , const char * file __attribute__((unused )),
57
+ int line __attribute__((unused ))
58
+ #endif
59
+ )
53
60
{
54
61
return realloc (addr , num );
55
62
}
56
63
57
- static void coc_free (void * addr , const char * file __attribute__((unused )),
58
- int line __attribute__((unused )))
64
+ static void coc_free (void * addr
65
+ #ifndef LIBRESSL_VERSION_NUMBER
66
+ , const char * file __attribute__((unused )),
67
+ int line __attribute__((unused ))
68
+ #endif
69
+ )
59
70
{
60
71
free (addr );
61
72
}
0 commit comments