diff options
author | Lukas Larsson <[email protected]> | 2013-10-15 18:40:03 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2014-02-24 15:15:58 +0100 |
commit | 7e6cdce4925cd033812bbb9b9f113c1862225439 (patch) | |
tree | 902887961e3488aa623f82de9a39a4b4da0350c8 /erts/emulator/sys/ose/driver_int.h | |
parent | fa3dd14716b2a7ad0c223ebacd2ffc6ecf6437e6 (diff) | |
download | otp-7e6cdce4925cd033812bbb9b9f113c1862225439.tar.gz otp-7e6cdce4925cd033812bbb9b9f113c1862225439.tar.bz2 otp-7e6cdce4925cd033812bbb9b9f113c1862225439.zip |
ose: Copied driver_int.h from unix
Diffstat (limited to 'erts/emulator/sys/ose/driver_int.h')
-rw-r--r-- | erts/emulator/sys/ose/driver_int.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/erts/emulator/sys/ose/driver_int.h b/erts/emulator/sys/ose/driver_int.h new file mode 100644 index 0000000000..2c9ac955d8 --- /dev/null +++ b/erts/emulator/sys/ose/driver_int.h @@ -0,0 +1,41 @@ +/* + * %CopyrightBegin% + * + * Copyright Ericsson AB 1997-2009. All Rights Reserved. + * + * The contents of this file are subject to the Erlang Public License, + * Version 1.1, (the "License"); you may not use this file except in + * compliance with the License. You should have received a copy of the + * Erlang Public License along with this software. If not, it can be + * retrieved online at http://www.erlang.org/. + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See + * the License for the specific language governing rights and limitations + * under the License. + * + * %CopyrightEnd% + */ +/* + * System dependant driver declarations + */ + +#ifndef __DRIVER_INT_H__ +#define __DRIVER_INT_H__ + +#ifdef HAVE_SYS_UIO_H +#include <sys/types.h> +#include <sys/uio.h> + +typedef struct iovec SysIOVec; + +#else + +typedef struct { + char* iov_base; + int iov_len; +} SysIOVec; + +#endif + +#endif |