/* Declarations for missing functions.
- Copyright (C) 2019 Free Software Foundation, Inc.
+ Copyright (C) 2019-2021 Free Software Foundation, Inc.
This file is part of libctf.
#include <stddef.h>
#include <stdlib.h>
+#include "libiberty.h"
#if HAVE_QSORT_R_ARG_LAST
static inline void
{
struct ctf_qsort_arg *qsort_arg = (struct ctf_qsort_arg *) arg;
- return qsort_arg->compar (a, b, arg);
+ return qsort_arg->compar (a, b, qsort_arg->arg);
}
static inline void
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
+#if !HAVE_DECL_STPCPY
+extern char *stpcpy (char *, const char *);
+#endif
+
#endif /* _CTF_DECLS_H */