diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-05-31 18:09:23 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-05-31 18:10:33 +0300 |
commit | ac8a0175beb365a0b421ae7f1cf6852fba9827c6 (patch) | |
tree | 909191fca7460bf0936dcd170d5084a9252bf764 /rpmio/rpmglob.c | |
parent | 794e24456a9a98d10e4d2a3b75cb740690312ef9 (diff) | |
download | rpm-ac8a0175beb365a0b421ae7f1cf6852fba9827c6.tar.gz |
Only use local mempcpy() if system libraries dont provide one
- Obvious yes, but how come this didn't barf on my other rather
identical system? Meh.
Diffstat (limited to 'rpmio/rpmglob.c')
-rw-r--r-- | rpmio/rpmglob.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rpmio/rpmglob.c b/rpmio/rpmglob.c index d58f38c12..4fc106daf 100644 --- a/rpmio/rpmglob.c +++ b/rpmio/rpmglob.c @@ -110,10 +110,12 @@ static int glob_in_dir(const char *pattern, const char *directory, static int prefix_array(const char *prefix, char **array, size_t n); static int collated_compare(const void *, const void *); +#ifndef HAVE_MEMPCPY static void * mempcpy(void *dest, const void *src, size_t n) { return (char *) memcpy(dest, src, n) + n; } +#endif /* Find the end of the sub-pattern in a brace expression. We define this as an inline function if the compiler permits. */ |