Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in portage-utils/libq: compat.c
Date: Sat, 26 Sep 2009 21:02:30
Message-Id: E1MreP4-0006ZF-Ea@stork.gentoo.org
1 grobian 09/09/26 21:02:02
2
3 Modified: compat.c
4 Log:
5 move S_BLKSIZE definitions into libq/compat.c per solar's suggestion
6
7 Revision Changes Path
8 1.5 portage-utils/libq/compat.c
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/libq/compat.c?rev=1.5&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/libq/compat.c?rev=1.5&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/libq/compat.c?r1=1.4&r2=1.5
13
14 Index: compat.c
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/portage-utils/libq/compat.c,v
17 retrieving revision 1.4
18 retrieving revision 1.5
19 diff -u -r1.4 -r1.5
20 --- compat.c 8 Sep 2009 17:21:50 -0000 1.4
21 +++ compat.c 26 Sep 2009 21:02:02 -0000 1.5
22 @@ -35,3 +35,20 @@
23 #else /* __sun__ */
24 # include <sys/dir.h>
25 #endif
26 +
27 +/* AIX */
28 +#ifdef _AIX
29 +# include <sys/stat.h>
30 +# define S_BLKSIZE DEV_BSIZE
31 +#endif
32 +
33 +/* Windows Interix */
34 +#ifdef __INTERIX
35 +# define S_BLKSIZE S_BLOCK_SIZE
36 +#endif
37 +
38 +/* HP-UX */
39 +#ifdef __hpux
40 +# define S_BLKSIZE st.st_blksize
41 +#endif
42 +