2 * ALSA lib - compatibility header to be included by local.h
3 * Copyright (c) 2016 by Thomas Klausner <wiz@NetBSD.org>
6 * This library is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation; either version 2.1 of
9 * the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef __TYPE_COMPAT_H
23 #define __TYPE_COMPAT_H
29 #define ESTRPIPE EPIPE
33 #define __u16 uint16_t
36 #define __u32 uint32_t
39 #define __u64 uint64_t
42 #define __le16 uint16_t
45 #define __le32 uint32_t
48 #define __le64 uint64_t
51 #define u_int8_t uint8_t
54 #define u_int16_t uint16_t
57 #define u_int32_t uint32_t
60 #define u_int32_t uint64_t
62 #ifndef __kernel_pid_t
63 #define __kernel_pid_t pid_t
65 #ifndef __kernel_off_t
66 #define __kernel_off_t off_t