1 /* @(#)ioctl.h 1.2 21/07/14 Copyright 2007-2021 J. Schilling */ 2 /* 3 * Abstraction from sys/ioctl.h 4 * 5 * Copyright (c) 2007-2021 J. Schilling 6 */ 7 /* 8 * The contents of this file are subject to the terms of the 9 * Common Development and Distribution License, Version 1.0 only 10 * (the "License"). You may not use this file except in compliance 11 * with the License. 12 * 13 * See the file CDDL.Schily.txt in this distribution for details. 14 * A copy of the CDDL is also available via the Internet at 15 * http://www.opensource.org/licenses/cddl1.txt 16 * 17 * When distributing Covered Code, include this CDDL HEADER in each 18 * file and include the License file CDDL.Schily.txt from this distribution. 19 */ 20 21 #ifndef _SCHILY_IOCTL_H 22 #define _SCHILY_IOCTL_H 23 24 #ifndef _SCHILY_MCONFIG_H 25 #include <schily/mconfig.h> 26 #endif 27 28 #if defined(OS390) || defined(__MVS__) 29 /* 30 * z/OS is inconsistent: 31 * sys/types.h defines u_int only if _ALL_SOURCE is #defined, 32 * but sys/ioctl.h defines it unconditionally. 33 */ 34 #ifdef u_int 35 #undef u_int 36 #endif 37 #endif 38 39 #ifdef HAVE_SYS_IOCTL_H 40 #ifndef _INCL_SYS_IOCTL_H 41 #include <sys/ioctl.h> 42 #define _INCL_SYS_IOCTL_H 43 #endif 44 #endif 45 46 #endif /* _SCHILY_IOCTL_H */ 47