Browse Source

Fix compat.h for #defined strlcpy

master
Causal Agent 6 days ago
parent
commit
6c63959d98
Signed by: C. McEnroe <june@causal.agency> GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      compat.h

+ 2
- 0
compat.h View File

@@ -19,8 +19,10 @@

// libcrypto defines these functions if libc doesn't.
void explicit_bzero(void *b, size_t len);
#ifndef strlcpy
size_t strlcpy(char *restrict dst, const char *restrict src, size_t dstsize);
size_t strlcat(char *restrict dst, const char *restrict src, size_t dstsize);
#endif
uint32_t arc4random(void);
void arc4random_buf(void *buf, size_t nbytes);
uint32_t arc4random_uniform(uint32_t upper_bound);

Loading…
Cancel
Save