summaryrefslogtreecommitdiffstats
path: root/lib/str.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/str.h')
-rw-r--r--lib/str.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/str.h b/lib/str.h
index 5492469e..3412bba9 100644
--- a/lib/str.h
+++ b/lib/str.h
@@ -6,7 +6,7 @@
#define _ZEBRA_STR_H
#ifndef HAVE_SNPRINTF
-int snprintf(char *, size_t, const char *, ...);
+extern int snprintf(char *, size_t, const char *, ...);
#endif
#ifndef HAVE_VSNPRINTF
@@ -14,15 +14,16 @@ int snprintf(char *, size_t, const char *, ...);
#endif
#ifndef HAVE_STRLCPY
-size_t strlcpy(char *, const char *, size_t);
+extern size_t strlcpy(char *, const char *, size_t);
#endif
#ifndef HAVE_STRLCAT
-size_t strlcat(char *, const char *, size_t);
+extern size_t strlcat(char *, const char *, size_t);
#endif
#ifndef HAVE_STRNLEN
extern size_t strnlen(const char *s, size_t maxlen);
#endif
-#endif
+#endif /* _ZEBRA_STR_H */
+