diff options
Diffstat (limited to 'src/pacman/util.h')
-rw-r--r-- | src/pacman/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pacman/util.h b/src/pacman/util.h index 2814a780..4d17b179 100644 --- a/src/pacman/util.h +++ b/src/pacman/util.h @@ -53,6 +53,10 @@ int pm_printf(pmloglevel_t level, const char *format, ...) __attribute__((format int pm_fprintf(FILE *stream, pmloglevel_t level, const char *format, ...) __attribute__((format(printf,3,4))); int pm_vfprintf(FILE *stream, pmloglevel_t level, const char *format, va_list args) __attribute__((format(printf,3,0))); +#ifndef HAVE_STRNDUP +char *strndup(const char *s, size_t n); +#endif + #endif /* _PM_UTIL_H */ /* vim: set ts=2 sw=2 noet: */ |