diff options
author | Fabian Groffen <grobian@gentoo.org> | 2019-03-18 14:11:41 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2019-03-18 14:13:19 +0100 |
commit | a221d981b4349b07d8b3869cb8ad2bb06d353a7a (patch) | |
tree | 1b3d480c25302c9d49d85884e292c10434421a99 /libq/scandirat.h | |
parent | q.c: move run_applet_l to its only consumer qmerge.c (diff) | |
download | portage-utils-a221d981b4349b07d8b3869cb8ad2bb06d353a7a.tar.gz portage-utils-a221d981b4349b07d8b3869cb8ad2bb06d353a7a.tar.bz2 portage-utils-a221d981b4349b07d8b3869cb8ad2bb06d353a7a.zip |
libq: standardise build
Compile each C-file by itself, producing an object which is linked into
a convenience archive. The q program then links against that archive.
Switch to autotools-based build for everyone.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'libq/scandirat.h')
-rw-r--r-- | libq/scandirat.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libq/scandirat.h b/libq/scandirat.h new file mode 100644 index 0000000..10ff256 --- /dev/null +++ b/libq/scandirat.h @@ -0,0 +1,23 @@ +/* + * Copyright 2005-2019 Gentoo Foundation + * Distributed under the terms of the GNU General Public License v2 + */ + +#ifndef _SCANDIRAT_H +#define _SCANDIRAT_H 1 + +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <dirent.h> + +#if !defined(HAVE_SCANDIRAT) +int scandirat( + int dir_fd, const char *dir, struct dirent ***dirlist, + int (*filter)(const struct dirent *), + int (*compar)(const struct dirent **, const struct dirent **)); +#endif + +void scandir_free(struct dirent **de, int cnt); + +#endif |