summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-06 23:18:06 -0500
committerJune McEnroe <june@causal.agency>2019-11-06 23:18:06 -0500
commit6c63959d98511c90d721c46fee7d4d756b598b99 (patch)
treedd76423747fcfd96f41e1c16e2df57faa1795572
parentAllow unsetting LIBRESSL_PREFIX (diff)
downloadpounce-6c63959d98511c90d721c46fee7d4d756b598b99.tar.gz
pounce-6c63959d98511c90d721c46fee7d4d756b598b99.zip
Fix compat.h for #defined strlcpy
-rw-r--r--compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index 961ece9..d471a8f 100644
--- a/compat.h
+++ b/compat.h
@@ -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);
d=0c4d76755b98bb597279a1930bf4c69eca7dde62&follow=1'>filter: don't use dlsym unnecessarilyJohn Keeping 2015-08-13ui-tree: use "sane" isgraph()John Keeping 2015-08-13cgit.h: move stdbool.h from ui-shared.hJohn Keeping 2015-08-13cache.c: fix header orderJohn Keeping 2015-08-13configfile.c: don't include system headers directlyJohn Keeping 2015-08-13Remove redundant includesJohn Keeping 2015-08-13Makefile: include Git's config.mak.unameJohn Keeping 2015-08-13tests: allow shell to be overriddenJohn Keeping 2015-08-13redirect: cleanlinessJason A. Donenfeld 2015-08-13redirect: be more careful for different cgi setupsJason A. Donenfeld 2015-08-12ui-log: fix double countingJohn Keeping 2015-08-12log: allow users to follow a fileJohn Keeping 2015-08-12shared: make cgit_diff_tree_cb publicJohn Keeping 2015-08-12t0110: Chain together using &&Jason A. Donenfeld 2015-08-12about: always ensure page has a trailing slashJason A. Donenfeld 2015-08-12filters: apply HTML escapingLazaros Koromilas 2015-08-12git: update to v2.5.0Christian Hesse 2015-08-12Fix processing of repo.hide and repo.ignoreDaniel Reichelt