diff options
author | Fabian Groffen <grobian@gentoo.org> | 2009-03-24 18:53:33 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2009-03-24 18:53:33 +0000 |
commit | d62a6f875b850a97e8707a1479de646cdd3d40e5 (patch) | |
tree | fbdf7d7da56efb6a083b5dfa5426068b46baf02c | |
parent | portage-utils-0.1.29-darwin.patch (diff) | |
download | portage-utils-d62a6f875b850a97e8707a1479de646cdd3d40e5.tar.gz portage-utils-d62a6f875b850a97e8707a1479de646cdd3d40e5.tar.bz2 portage-utils-d62a6f875b850a97e8707a1479de646cdd3d40e5.zip |
portage-utils-0.1.29-aix.patch
AIX needs some extra defines to properly compile this
-rw-r--r-- | main.c | 5 | ||||
-rw-r--r-- | qsize.c | 9 |
2 files changed, 11 insertions, 3 deletions
@@ -1,13 +1,16 @@ /* * Copyright 2005-2008 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/portage-utils/main.c,v 1.160 2009/03/15 10:03:42 vapier Exp $ + * $Header: /var/cvsroot/gentoo-projects/portage-utils/main.c,v 1.161 2009/03/24 18:53:33 grobian Exp $ * * Copyright 2005-2008 Ned Ludd - <solar@gentoo.org> * Copyright 2005-2008 Mike Frysinger - <vapier@gentoo.org> */ #define _GNU_SOURCE +#ifdef _AIX +#define _LINUX_SOURCE_COMPAT +#endif #include <stdio.h> #include <stdlib.h> @@ -1,7 +1,7 @@ /* * Copyright 2005-2007 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/portage-utils/qsize.c,v 1.28 2007/11/04 09:03:42 solar Exp $ + * $Header: /var/cvsroot/gentoo-projects/portage-utils/qsize.c,v 1.29 2009/03/24 18:53:33 grobian Exp $ * * Copyright 2005-2007 Ned Ludd - <solar@gentoo.org> * Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org> @@ -32,9 +32,14 @@ static const char *qsize_opts_help[] = { "Ignore regexp string", COMMON_OPTS_HELP }; -static const char qsize_rcsid[] = "$Id: qsize.c,v 1.28 2007/11/04 09:03:42 solar Exp $"; +static const char qsize_rcsid[] = "$Id: qsize.c,v 1.29 2009/03/24 18:53:33 grobian Exp $"; #define qsize_usage(ret) usage(ret, QSIZE_FLAGS, qsize_long_opts, qsize_opts_help, lookup_applet_idx("qsize")) +#ifdef _AIX +# include <sys/stat.h> +# define S_BLKSIZE DEV_BSIZE +#endif + int qsize_main(int argc, char **argv) { DIR *dir, *dirp; |