build: add workaround for broken linux-glibc-devel 2.6.34 userspace headers

This commit is contained in:
Jan Engelhardt
2010-09-23 02:30:23 +02:00
parent 376a89e7d1
commit b5e2c7255a
26 changed files with 38 additions and 0 deletions

12
extensions/compat_user.h Normal file
View File

@@ -0,0 +1,12 @@
/*
* Userspace-level compat hacks
*/
#ifndef _XTABLES_COMPAT_USER_H
#define _XTABLES_COMPAT_USER_H 1
/* linux-glibc-devel 2.6.34 header screwup */
#ifndef ALIGN
# define ALIGN(s, n) (((s) + ((n) - 1)) & ~((n) - 1))
#endif
#endif /* _XTABLES_COMPAT_USER_H */