about summary refs log tree commit diff stats
path: root/src/realpath.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-02-10 23:42:09 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-02-10 23:42:09 -0800
commit2d3cad5945dcd84a6e3dff4de4ca2d187b087d83 (patch)
tree58aaa1a08e1fca3fae537ba5f01f20421eddd90f /src/realpath.c
parentd7436f047dea50cff8357b308719a5a389f08ba2 (diff)
downloadteliva-2d3cad5945dcd84a6e3dff4de4ca2d187b087d83.tar.gz
fix build on Mac OS
Diffstat (limited to 'src/realpath.c')
-rw-r--r--src/realpath.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/realpath.c b/src/realpath.c
index a59b637..81a6488 100644
--- a/src/realpath.c
+++ b/src/realpath.c
@@ -36,8 +36,10 @@
 #include <string.h>
 #include <unistd.h>
 
+#if !__APPLE__
 extern size_t strlcpy(char * dst, const char * src, size_t size);
 extern size_t strlcat(char * dst, const char * src, size_t size);
+#endif
 
 /*
  * Find the real name of path, by removing all ".", ".." and symlink