]> rtime.felk.cvut.cz Git - orte.git/blob - orte/include/rtl/compat_rtlwip.h
124bc1eb0f6629a6f4a877490daa757b5c2ea230
[orte.git] / orte / include / rtl / compat_rtlwip.h
1 /*
2  *  $Id: compat.h,v 0.0.0.1             2003/12/19 
3  *
4  *  AUTHOR: Michal Sojka                sojka1@fel.cvut.cz
5  *
6  *  ORTE - Open Real-Time Ethernet      http://www.ocera.org/
7  *  --------------------------------------------------------------------
8  *
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.
13  *  
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.
18  *  
19  */
20
21 #ifndef _COMPAT_H
22 #define _COMPAT_H
23
24 #include <linux/if.h>
25 #include <linux/in.h>
26
27 #define printf rtl_printf
28 #define gettimeofday(tv, tz) do_gettimeofday(tv)
29
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)
33
34
35 static inline int atoi(const char* nptr)
36 {
37     return simple_strtol(nptr, (char **)NULL, 10);
38 }
39
40 #endif /* _COMPAT_H */