[pacman-dev] [PATCH] Removing strndup and a small typo fix
Allan McRae
allan at archlinux.org
Tue Sep 1 21:49:56 EDT 2009
Laszlo Papp wrote:
> Code cleaning, removing strndup, because it's available with glibc in
> the same manner, and a small typo fix.
>
> Signed-off-by: Laszlo Papp <djszapi2 at gmail.com>
> ---
> <snip>
>
> -#ifndef HAVE_STRNDUP
> -char *strndup(const char *s, size_t n);
> -#endif
> -
> #endif /* _PM_UTIL_H */
>
I believe that strndup is a GNU library extension so is not universally
supported. Hence the #ifndef here. Has this changed since the original
commit (581769b7)?
Allan
More information about the pacman-dev
mailing list