summaryrefslogtreecommitdiff
path: root/src/syscall.h
blob: 993b6b2d4fbdbcd9bd10656464806dd2400fd781 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#define _SYMSTR(str)	#str
#define SYMSTR(str)	_SYMSTR(str)

#define SYMVER(compat_sym, orig_sym, ver_sym)	\
	__asm__(".symver " SYMSTR(compat_sym) "," SYMSTR(orig_sym) "@LIBAIO_" SYMSTR(ver_sym));

#if defined(__i386__)
#include "syscall-i386.h"
#elif defined(__ia64__)
#include "syscall-ia64.h"
#else
#error "add syscall-arch.h"
#endif