1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../pciutils/compile.patch.dietlibc
5 # Copyright (C) 2006 - 2016 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- ./lib/types.h.orig 2006-06-21 14:44:57.000000000 +0200
18 +++ ./lib/types.h 2006-06-21 14:56:35.000000000 +0200
20 typedef unsigned __int16 u16;
21 typedef unsigned __int32 u32;
24 -typedef u_int16_t u16;
25 -typedef u_int32_t u32;
27 +typedef uint16_t u16;
28 +typedef uint32_t u32;
31 #ifdef PCI_HAVE_64BIT_ADDRESS
32 --- ./lib/pread.h.orig 2006-06-21 14:59:19.000000000 +0200
33 +++ ./lib/pread.h 2006-06-21 14:59:41.000000000 +0200
38 -#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ > 0
39 +#if (defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ > 0 || defined(__dietlibc__))
40 /* glibc 2.1 or newer -> pread/pwrite supported automatically */
42 #elif defined(i386) && defined(__GLIBC__)