1 /* 2 * ALSA lib - compatibility header to be included by local.h 3 * Copyright (c) 2016 by Thomas Klausner <wiz@NetBSD.org> 4 * 5 * 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. 10 * 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. 15 * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 * 20 */ 21 22 #ifndef __TYPE_COMPAT_H 23 #define __TYPE_COMPAT_H 24 25 #ifndef EBADFD 26 #define EBADFD EBADF 27 #endif 28 #ifndef ESTRPIPE 29 #define ESTRPIPE EPIPE 30 #endif 31 32 #ifndef __u16 33 #define __u16 uint16_t 34 #endif 35 #ifndef __u32 36 #define __u32 uint32_t 37 #endif 38 #ifndef __u64 39 #define __u64 uint64_t 40 #endif 41 #ifndef __le16 42 #define __le16 uint16_t 43 #endif 44 #ifndef __le32 45 #define __le32 uint32_t 46 #endif 47 #ifndef __le64 48 #define __le64 uint64_t 49 #endif 50 #ifndef __kernel_pid_t 51 #define __kernel_pid_t pid_t 52 #endif 53 #ifndef __kernel_off_t 54 #define __kernel_off_t off_t 55 #endif 56 57 #ifndef __bitwise 58 #define __bitwise 59 #endif 60 61 #endif 62