Whamcloud - gitweb
Landing b_hd_newconfig on HEAD
[fs/lustre-release.git] / lnet / include / lnet / linux / api-support.h
1 #ifndef __LINUX_API_SUPPORT_H__
2 #define __LINUX_API_SUPPORT_H__
3
4 #ifndef __LNET_API_SUPPORT_H__
5 #error Do not #include this file directly. #include <lnet /api-support.h> instead
6 #endif
7
8 #ifndef __KERNEL__
9 # include <stdio.h>
10 # include <stdlib.h>
11 # include <unistd.h>
12 # include <time.h>
13
14 /* Lots of POSIX dependencies to support PtlEQWait_timeout */
15 # include <signal.h>
16 # include <setjmp.h>
17 # include <time.h>
18
19 #ifdef HAVE_LIBREADLINE
20 #define READLINE_LIBRARY
21 #include <readline/readline.h>
22
23 /* readline.h pulls in a #define that conflicts with one in libcfs.h */
24 #undef RETURN
25
26 /* completion_matches() is #if 0-ed out in modern glibc */
27 #ifndef completion_matches
28 #  define completion_matches rl_completion_matches
29 #endif
30
31 #endif /* HAVE_LIBREADLINE */
32
33 extern void using_history(void);
34 extern void stifle_history(int);
35 extern void add_history(char *);
36
37 #endif /* !__KERNEL__ */
38
39 #endif