2 * $Id: compat.h,v 0.0.0.1 2003/12/19
4 * AUTHOR: Michal Sojka sojka1@fel.cvut.cz
6 * ORTE - Open Real-Time Ethernet http://www.ocera.org/
7 * --------------------------------------------------------------------
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
27 #define printf rtl_printf
28 #define gettimeofday(tv, tz) do_gettimeofday(tv)
30 #define setsockopt(a, b, c, d, e) (-1)
31 #define getsockopt(a, b, c, d, e) (-1)
32 #define ioctl(a, b, c) (-1)
36 atoi(const char *nptr)
38 return simple_strtol(nptr, (char **)NULL, 10);
41 #endif /* _COMPAT_H */