From 31b3f1eb9d3f166db9e40cadd47d946fb2783a5d Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Tue, 18 Nov 2014 10:16:27 +0100 Subject: [PATCH] add comment to warn about function name collisions --- bsd-compat/bsd-compat.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bsd-compat/bsd-compat.h b/bsd-compat/bsd-compat.h index 9b99ef7..7c5d6c7 100644 --- a/bsd-compat/bsd-compat.h +++ b/bsd-compat/bsd-compat.h @@ -1,9 +1,14 @@ #ifndef BSD_COMPAT_H #define BSD_COMPAT_H +/* + * XXX: these end up exported by libsndio, hide them to avoid possible + * collisions with program functions with the same name. + */ + int issetugid(void); -size_t strlcpy(char *, const char *, size_t); size_t strlcat(char *, const char *, size_t); +size_t strlcpy(char *, const char *, size_t); long long strtonum(const char *, long long, long long, const char **); #endif /* !defined(BSD_COMPAT_H) */